From 25163380239abbad28f1656c42e6fab1b92473d9 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Thu, 16 Dec 2010 15:51:55 +1100 Subject: [PATCH] s4-dsdb Don't talloc_free() ares on failure, as LDB might free it later We need to make LDB consistent here (indexed vs unindexed behaviour differs here!), but for the moment this is the easiest way out of a segfault. Andrew Bartlett Autobuild-User: Andrew Bartlett Autobuild-Date: Thu Dec 16 06:42:56 CET 2010 on sn-devel-104 --- source4/dsdb/samdb/ldb_modules/descriptor.c | 1 - 1 file changed, 1 deletion(-) diff --git a/source4/dsdb/samdb/ldb_modules/descriptor.c b/source4/dsdb/samdb/ldb_modules/descriptor.c index 0ea91ba6007..b96e5b5ccd6 100644 --- a/source4/dsdb/samdb/ldb_modules/descriptor.c +++ b/source4/dsdb/samdb/ldb_modules/descriptor.c @@ -545,7 +545,6 @@ static int descriptor_search_callback(struct ldb_request *req, struct ldb_reply } fail: - talloc_free(ares); return ldb_module_done(ac->req, NULL, NULL, ret); } -- 2.34.1