summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-01-12 13:00:55 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:40:28 -0500
commitf8ce15a417bb11d110b1fdf1379fa4486f628180 (patch)
treefd7bf9598f156440202ea336951483f4de829f32 /source4
parented62bda65010d874969725c8ec7d11dd7994209d (diff)
downloadsamba-f8ce15a417bb11d110b1fdf1379fa4486f628180.tar.gz
samba-f8ce15a417bb11d110b1fdf1379fa4486f628180.tar.bz2
samba-f8ce15a417bb11d110b1fdf1379fa4486f628180.zip
r20703: fix minor memory leak
metze (This used to be commit 4012e54ef22fc9a18d4533f6b48530ddc9c67992)
Diffstat (limited to 'source4')
-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;