diff options
author | Andrew Bartlett <abartlet@samba.org> | 2008-01-07 00:46:39 -0600 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2008-01-06 18:51:02 -0600 |
commit | 56cf85f73f9a0f8b08094ab9f7f85ec777a2c5d6 (patch) | |
tree | b284df5d553820f9c259f7a2a253309b35526768 /source4/dsdb/common | |
parent | 4e6dcc73b26f8ba1804ff504bc8c60d94bb7ed3d (diff) | |
download | samba-56cf85f73f9a0f8b08094ab9f7f85ec777a2c5d6.tar.gz samba-56cf85f73f9a0f8b08094ab9f7f85ec777a2c5d6.tar.bz2 samba-56cf85f73f9a0f8b08094ab9f7f85ec777a2c5d6.zip |
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)
Diffstat (limited to 'source4/dsdb/common')
-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) { |