dsdb-acl: talloc_free the private context when we pass to the next module
authorStefan Metzmacher <metze@samba.org>
Thu, 17 Jan 2013 07:37:58 +0000 (08:37 +0100)
committerMatthieu Patou <mat@matws.net>
Thu, 17 Jan 2013 08:20:40 +0000 (00:20 -0800)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Matthieu Patou <mat@matws.net>
source4/dsdb/samdb/ldb_modules/acl.c

index 19271326aa9d3020d4e942e0fbcc7ff721a86463..e5597710e822db8b8c587c787435515036273ff4 100644 (file)
@@ -1680,6 +1680,7 @@ static int acl_search(struct ldb_module *module, struct ldb_request *req)
        }
 
        if (!ac->constructed_attrs && !ac->modify_search) {
+               talloc_free(ac);
                return ldb_next_request(module, req);
        }