From f74e8c266f43d0c640ab8068d28a1b197164d548 Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Fri, 11 Sep 2009 13:35:55 +0200 Subject: 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. --- source4/lib/ldb/ldb_map/ldb_map_outbound.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source4') 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); -- cgit