summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/common
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2009-08-14 01:39:56 +0200
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2009-08-14 01:56:33 +0200
commitfa61fdf8b7784081e515e9a26f84a83c1188d97a (patch)
treea144f723ceda031233811be8c7ff6811b2846e1f /source4/lib/ldb/common
parent639c9ccb93e2766d865c769fa8c53a7c3d5f307c (diff)
downloadsamba-fa61fdf8b7784081e515e9a26f84a83c1188d97a.tar.gz
samba-fa61fdf8b7784081e515e9a26f84a83c1188d97a.tar.bz2
samba-fa61fdf8b7784081e515e9a26f84a83c1188d97a.zip
s4:ldb - Free the asynchronous result
Diffstat (limited to 'source4/lib/ldb/common')
-rw-r--r--source4/lib/ldb/common/ldb.c2
1 files changed, 2 insertions, 0 deletions
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;
}