s4:ldb_map_outbound - fix memory leak
[ira/wip.git] / source4 / lib / ldb / ldb_map / ldb_map_outbound.c
index 5f5be89976c3056d97b0f179d0888a840f9d5574..6a8e796ca4646d0b5d93c340e07df3a16779c46a 100644 (file)
@@ -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);