svn commit: samba r20276 - in branches/SAMBA_4_0/source/libcli/util: .

metze at samba.org metze at samba.org
Wed Dec 20 12:51:29 GMT 2006


Author: metze
Date: 2006-12-20 12:51:29 +0000 (Wed, 20 Dec 2006)
New Revision: 20276

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=20276

Log:
remove unneeded talloc_strdup()

metze
Modified:
   branches/SAMBA_4_0/source/libcli/util/asn1.c


Changeset:
Modified: branches/SAMBA_4_0/source/libcli/util/asn1.c
===================================================================
--- branches/SAMBA_4_0/source/libcli/util/asn1.c	2006-12-20 12:50:03 UTC (rev 20275)
+++ branches/SAMBA_4_0/source/libcli/util/asn1.c	2006-12-20 12:51:29 UTC (rev 20276)
@@ -510,11 +510,11 @@
 	}
 
 	if (!data->has_error) {
-		*OID = talloc_strdup(NULL, tmp_oid);
-		if (!*OID) goto nomem;
+		*OID = tmp_oid;
+	} else {
+		talloc_free(tmp_oid);
 	}
 
-	talloc_free(tmp_oid);
 	return !data->has_error;
 nomem:	
 	talloc_free(tmp_oid);



More information about the samba-cvs mailing list