From 2fe86d1e427d333741dae2f83c2bb23f629eec2e Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Sun, 14 Jan 2007 18:54:42 +0000 Subject: r20778: we don't need a talloc_steal here metze (This used to be commit 0ef90769b49b93cb57e9a1ba2aea280ec70ae151) --- source4/dsdb/samdb/ldb_modules/schema_fsmo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4') diff --git a/source4/dsdb/samdb/ldb_modules/schema_fsmo.c b/source4/dsdb/samdb/ldb_modules/schema_fsmo.c index 1a83e3a9bf..9faed9a5ac 100644 --- a/source4/dsdb/samdb/ldb_modules/schema_fsmo.c +++ b/source4/dsdb/samdb/ldb_modules/schema_fsmo.c @@ -200,6 +200,7 @@ static int schema_fsmo_init(struct ldb_module *module) } 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 @@ static int schema_fsmo_init(struct ldb_module *module) return ret; } - talloc_steal(module, schema); talloc_free(mem_ctx); return ldb_next_init(module); } -- cgit