svn commit: samba r20778 - in branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules: .

metze at samba.org metze at samba.org
Sun Jan 14 18:54:42 GMT 2007


Author: metze
Date: 2007-01-14 18:54:42 +0000 (Sun, 14 Jan 2007)
New Revision: 20778

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

Log:
we don't need a talloc_steal here

metze
Modified:
   branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules/schema_fsmo.c


Changeset:
Modified: branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules/schema_fsmo.c
===================================================================
--- branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules/schema_fsmo.c	2007-01-14 18:48:14 UTC (rev 20777)
+++ branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules/schema_fsmo.c	2007-01-14 18:54:42 UTC (rev 20778)
@@ -200,6 +200,7 @@
 	}
 	talloc_free(c_res);
 
+	/* dsdb_set_schema() steal schema into the ldb_context */
 	ret = dsdb_set_schema(module->ldb, schema);
 	if (ret != LDB_SUCCESS) {
 		ldb_debug_set(module->ldb, LDB_DEBUG_FATAL,
@@ -209,7 +210,6 @@
 		return ret;
 	}
 
-	talloc_steal(module, schema);
 	talloc_free(mem_ctx);
 	return ldb_next_init(module);
 }



More information about the samba-cvs mailing list