summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2009-09-11 13:35:55 +0200
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2009-09-11 13:38:29 +0200
commitf74e8c266f43d0c640ab8068d28a1b197164d548 (patch)
treeabbb4e49e2fa4c69307ae7e7347f13c773b50f04 /source4
parent049c780c598a7cbfc17e4bc8a322e180f5b5472f (diff)
downloadsamba-f74e8c266f43d0c640ab8068d28a1b197164d548.tar.gz
samba-f74e8c266f43d0c640ab8068d28a1b197164d548.tar.bz2
samba-f74e8c266f43d0c640ab8068d28a1b197164d548.zip
s4:ldb_map_outbound - fix memory leak
Patch from Andrew Kroeger wasn't fully correct - we need a "talloc_free" after the "if (ac->r_current == NULL)" statement.
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/ldb/ldb_map/ldb_map_outbound.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/lib/ldb/ldb_map/ldb_map_outbound.c b/source4/lib/ldb/ldb_map/ldb_map_outbound.c
index 5f5be89976..6a8e796ca4 100644
--- a/source4/lib/ldb/ldb_map/ldb_map_outbound.c
+++ b/source4/lib/ldb/ldb_map/ldb_map_outbound.c
@@ -1261,6 +1261,8 @@ static int map_remote_search_callback(struct ldb_request *req,
return ret;
}
+ talloc_free(ares);
+
ret = map_search_local(ac);
if (ret != LDB_SUCCESS) {
return ldb_module_done(ac->req, NULL, NULL, ret);