diff options
-rw-r--r-- | source4/dsdb/common/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/dsdb/common/util.c b/source4/dsdb/common/util.c index 17a20199d5..bee1eac480 100644 --- a/source4/dsdb/common/util.c +++ b/source4/dsdb/common/util.c @@ -1395,7 +1395,7 @@ bool samdb_is_gc(struct ldb_context *ldb) options = ldb_msg_find_attr_as_int(res->msgs[0], "options", 0); talloc_free(res); - talloc_free(ldb); + talloc_free(tmp_ctx); /* if options attribute has the 0x00000001 flag set, then enable the global catlog */ if (options & 0x000000001) { |