svn commit: samba r19193 - in branches/SAMBA_3_0/source/lib/ldb/ldb_tdb: .

metze at samba.org metze at samba.org
Mon Oct 9 08:32:53 GMT 2006


Author: metze
Date: 2006-10-09 08:32:51 +0000 (Mon, 09 Oct 2006)
New Revision: 19193

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

Log:
merge from samba4:

fixed another checker warning and a possible error on allocation
failure

metze
Modified:
   branches/SAMBA_3_0/source/lib/ldb/ldb_tdb/ldb_index.c


Changeset:
Modified: branches/SAMBA_3_0/source/lib/ldb/ldb_tdb/ldb_index.c
===================================================================
--- branches/SAMBA_3_0/source/lib/ldb/ldb_tdb/ldb_index.c	2006-10-09 08:26:58 UTC (rev 19192)
+++ branches/SAMBA_3_0/source/lib/ldb/ldb_tdb/ldb_index.c	2006-10-09 08:32:51 UTC (rev 19193)
@@ -232,13 +232,15 @@
 
 		list->dn = talloc_array(list, char *, el->num_values);
 		if (!list->dn) {
-			break;		
+			talloc_free(msg);
+			return -1;
 		}
 
 		for (j=0;j<el->num_values;j++) {
 			list->dn[list->count] = 
 				talloc_strdup(list->dn, (char *)el->values[j].data);
 			if (!list->dn[list->count]) {
+				talloc_free(msg);
 				return -1;
 			}
 			list->count++;



More information about the samba-cvs mailing list