diff options
Diffstat (limited to 'source4/dsdb/samdb/ldb_modules')
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/schema_fsmo.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |