summaryrefslogtreecommitdiff
path: root/source4/dsdb
diff options
context:
space:
mode:
Diffstat (limited to 'source4/dsdb')
-rw-r--r--source4/dsdb/samdb/samdb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/dsdb/samdb/samdb.c b/source4/dsdb/samdb/samdb.c
index 405f15c83e..3f5cb90ae5 100644
--- a/source4/dsdb/samdb/samdb.c
+++ b/source4/dsdb/samdb/samdb.c
@@ -1165,6 +1165,7 @@ const struct ldb_dn *samdb_ntds_settings_dn(struct ldb_context *ldb)
if (ret) {
goto failed;
}
+ talloc_steal(tmp_ctx, root_res);
if (root_res->count != 1) {
goto failed;