summaryrefslogtreecommitdiff
path: root/source4/dsdb/samdb/ldb_modules/descriptor.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2010-12-17 08:43:33 +1100
committerAndrew Bartlett <abartlet@samba.org>2010-12-18 02:19:59 +0100
commit455ef46785daee63cffc949ffbfbabf44e11328b (patch)
tree6bdbcc647ddd835c5964172344dd3e55f9fc0d98 /source4/dsdb/samdb/ldb_modules/descriptor.c
parent656c828b9fcd8538b1503f86f8ac499837d7fc59 (diff)
downloadsamba-455ef46785daee63cffc949ffbfbabf44e11328b.tar.gz
samba-455ef46785daee63cffc949ffbfbabf44e11328b.tar.bz2
samba-455ef46785daee63cffc949ffbfbabf44e11328b.zip
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 <abartlet@samba.org> Autobuild-Date: Sat Dec 18 02:19:59 CET 2010 on sn-devel-104
Diffstat (limited to 'source4/dsdb/samdb/ldb_modules/descriptor.c')
-rw-r--r--source4/dsdb/samdb/ldb_modules/descriptor.c1
1 files changed, 1 insertions, 0 deletions
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);
}