svn commit: samba r26679 - in branches/SAMBA_4_0/source/dsdb/common: .

abartlet at samba.org abartlet at samba.org
Mon Jan 7 00:46:42 GMT 2008


Author: abartlet
Date: 2008-01-07 00:46:39 +0000 (Mon, 07 Jan 2008)
New Revision: 26679

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

Log:
It is very bad to free the ldb handle when you didn't create it...

(My bad when copying this code into samdb_is_gc()).

Andrew Bartlett

Modified:
   branches/SAMBA_4_0/source/dsdb/common/util.c


Changeset:
Modified: branches/SAMBA_4_0/source/dsdb/common/util.c
===================================================================
--- branches/SAMBA_4_0/source/dsdb/common/util.c	2008-01-06 23:42:46 UTC (rev 26678)
+++ branches/SAMBA_4_0/source/dsdb/common/util.c	2008-01-07 00:46:39 UTC (rev 26679)
@@ -1395,7 +1395,7 @@
 
 	options = ldb_msg_find_attr_as_int(res->msgs[0], "options", 0);
 	talloc_free(res);
-	talloc_free(ldb);
+	talloc_free(tmp_ctx);
 
 	/* if options attribute has the 0x00000001 flag set, then enable the global catlog */
 	if (options & 0x000000001) {



More information about the samba-cvs mailing list