summaryrefslogtreecommitdiff
path: root/source3/modules/vfs_posixacl.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2021-06-08 17:10:59 -0700
committerRalph Boehme <slow@samba.org>2021-06-09 13:14:29 +0000
commitfc8b3f1878f3654379de2c9ca30bfe4084bc6633 (patch)
tree5a56e1bc64e32f6ce05d063486b88a96322f12bb /source3/modules/vfs_posixacl.c
parent8a427783e5e780d3ffbe4f9710ac4a17c483ca33 (diff)
downloadsamba-fc8b3f1878f3654379de2c9ca30bfe4084bc6633.tar.gz
s3: VFS: posixacl: Missing acl_free() in error code path.
Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
Diffstat (limited to 'source3/modules/vfs_posixacl.c')
-rw-r--r--source3/modules/vfs_posixacl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/modules/vfs_posixacl.c b/source3/modules/vfs_posixacl.c
index 365759f6346..4a3dc1b8258 100644
--- a/source3/modules/vfs_posixacl.c
+++ b/source3/modules/vfs_posixacl.c
@@ -156,6 +156,7 @@ int posixacl_sys_acl_set_fd(vfs_handle_struct *handle,
proc_fd_path = sys_proc_fd_path(fd, buf, sizeof(buf));
if (proc_fd_path == NULL) {
+ acl_free(acl);
return -1;
}
res = acl_set_file(proc_fd_path, type, acl);