svn commit: samba r19114 - in branches/SAMBA_4_0/source/lib/ldb/ldb_tdb: .

tridge at samba.org tridge at samba.org
Fri Oct 6 06:52:32 GMT 2006


Author: tridge
Date: 2006-10-06 06:52:30 +0000 (Fri, 06 Oct 2006)
New Revision: 19114

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

Log:

fixed another checker warning and a possible error on allocation
failure

Modified:
   branches/SAMBA_4_0/source/lib/ldb/ldb_tdb/ldb_index.c


Changeset:
Modified: branches/SAMBA_4_0/source/lib/ldb/ldb_tdb/ldb_index.c
===================================================================
--- branches/SAMBA_4_0/source/lib/ldb/ldb_tdb/ldb_index.c	2006-10-06 06:42:05 UTC (rev 19113)
+++ branches/SAMBA_4_0/source/lib/ldb/ldb_tdb/ldb_index.c	2006-10-06 06:52:30 UTC (rev 19114)
@@ -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