From f8ce15a417bb11d110b1fdf1379fa4486f628180 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 12 Jan 2007 13:00:55 +0000 Subject: r20703: fix minor memory leak metze (This used to be commit 4012e54ef22fc9a18d4533f6b48530ddc9c67992) --- source4/dsdb/samdb/samdb.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source4/dsdb') 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; -- cgit