From 455ef46785daee63cffc949ffbfbabf44e11328b Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Fri, 17 Dec 2010 08:43:33 +1100 Subject: Revert "s4-dsdb Don't talloc_free() ares on failure, as LDB might free it later" This reverts commit 25163380239abbad28f1656c42e6fab1b92473d9 because further analyis showed the real problem was introduced in 0941099a (which changed the caller behaviour, but only for indexed searches). Andrew Bartlett Autobuild-User: Andrew Bartlett Autobuild-Date: Sat Dec 18 02:19:59 CET 2010 on sn-devel-104 --- source4/dsdb/samdb/ldb_modules/descriptor.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source4/dsdb/samdb') diff --git a/source4/dsdb/samdb/ldb_modules/descriptor.c b/source4/dsdb/samdb/ldb_modules/descriptor.c index b96e5b5ccd..0ea91ba600 100644 --- a/source4/dsdb/samdb/ldb_modules/descriptor.c +++ b/source4/dsdb/samdb/ldb_modules/descriptor.c @@ -545,6 +545,7 @@ 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); } -- cgit