1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-10 01:18:15 +03:00

s4:policy: Fix leak

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Joseph Sutton 2023-07-31 11:23:29 +12:00 committed by Andrew Bartlett
parent 36bbfe62fa
commit 5b2e60588a

View 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;
}