From: Matthias Dieter Wallnöfer Date: Thu, 13 Aug 2009 23:39:56 +0000 (+0200) Subject: s4:ldb - Free the asynchronous result X-Git-Tag: talloc-2.0.0~385 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fa61fdf8b7784081e515e9a26f84a83c1188d97a;p=thirdparty%2Fsamba.git s4:ldb - Free the asynchronous result --- diff --git a/source4/lib/ldb/common/ldb.c b/source4/lib/ldb/common/ldb.c index 164e5a95a04..38cc0c880b2 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; }