s3-gpo: Fix CID #1405972 Resource leak
authorGünther Deschner <gd@samba.org>
Tue, 9 May 2017 12:31:15 +0000 (14:31 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 9 May 2017 21:20:08 +0000 (23:20 +0200)
Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/libgpo/gpext/registry.c

index 4a0d0cfe8486625c394dcc76f111f76499488dfd..ceb05f030b643ad1e2d855ac07aa3a4fa83e952e 100644 (file)
@@ -342,6 +342,7 @@ static NTSTATUS registry_process_group_policy(TALLOC_CTX *mem_ctx,
 
 err_cache_path_free:
        talloc_free(gpo_cache_path);
+       talloc_free(entries);
        return status;
 }