]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: VFS: posixacl: Missing acl_free() in error code path.
authorJeremy Allison <jra@samba.org>
Wed, 9 Jun 2021 00:10:59 +0000 (17:10 -0700)
committerRalph Boehme <slow@samba.org>
Wed, 9 Jun 2021 13:14:29 +0000 (13:14 +0000)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/modules/vfs_posixacl.c

index 365759f634662c7436c649a32165f89878f57b48..4a3dc1b825807c2cc86dcca402d8d915c91043a3 100644 (file)
@@ -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);