From 56cf85f73f9a0f8b08094ab9f7f85ec777a2c5d6 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 7 Jan 2008 00:46:39 -0600 Subject: r26679: It is very bad to free the ldb handle when you didn't create it... (My bad when copying this code into samdb_is_gc()). Andrew Bartlett (This used to be commit b4a95a89853a0ebd75b39f01bbdbf82e05e97bd7) --- source4/dsdb/common/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit