r20778: we don't need a talloc_steal here
authorStefan Metzmacher <metze@samba.org>
Sun, 14 Jan 2007 18:54:42 +0000 (18:54 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:40:53 +0000 (14:40 -0500)
metze

source/dsdb/samdb/ldb_modules/schema_fsmo.c

index 1a83e3a9bf52961eebbc1622f138a3358f2ada8c..9faed9a5ace46d0e6825844a3729a27a03a4c3c4 100644 (file)
@@ -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);
 }