]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:policy: Fix leak
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Sun, 30 Jul 2023 23:23:29 +0000 (11:23 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 8 Aug 2023 04:39:38 +0000 (04:39 +0000)
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/lib/policy/gp_manage.c

index 769e6c02d2f9807884ca9941bfb7537cf1d4b20b..d8feadb95fe9dbf2dbf693459217e02456c6f661 100644 (file)
@@ -127,6 +127,7 @@ NTSTATUS gp_create_gpt_security_descriptor (TALLOC_CTX *mem_ctx, struct security
                status = security_descriptor_dacl_add(fs_sd, ace);
                if (!NT_STATUS_IS_OK(status)) {
                        DEBUG(0, ("Failed to add a dacl to file system security descriptor\n"));
+                       TALLOC_FREE(fs_sd);
                        return status;
                }