From fa61fdf8b7784081e515e9a26f84a83c1188d97a Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Fri, 14 Aug 2009 01:39:56 +0200 Subject: s4:ldb - Free the asynchronous result --- source4/lib/ldb/common/ldb.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source4/lib/ldb/common') diff --git a/source4/lib/ldb/common/ldb.c b/source4/lib/ldb/common/ldb.c index 164e5a95a0..38cc0c880b 100644 --- a/source4/lib/ldb/common/ldb.c +++ b/source4/lib/ldb/common/ldb.c @@ -677,10 +677,12 @@ int ldb_search_default_callback(struct ldb_request *req, /* this is the last message, and means the request is done */ /* we have to signal and eventual ldb_wait() waiting that the * async request operation was completed */ + talloc_free(ares); return ldb_request_done(req, LDB_SUCCESS); } talloc_free(ares); + return LDB_SUCCESS; } -- cgit