From: Matthias Dieter Wallnöfer Date: Fri, 11 Sep 2009 11:35:55 +0000 (+0200) Subject: s4:ldb_map_outbound - fix memory leak X-Git-Tag: talloc-2.0.1~530^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f74e8c266f43d0c640ab8068d28a1b197164d548;p=thirdparty%2Fsamba.git 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. --- diff --git a/source4/lib/ldb/ldb_map/ldb_map_outbound.c b/source4/lib/ldb/ldb_map/ldb_map_outbound.c index 5f5be89976c..6a8e796ca46 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);