From fc8b3f1878f3654379de2c9ca30bfe4084bc6633 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 8 Jun 2021 17:10:59 -0700 Subject: [PATCH] s3: VFS: posixacl: Missing acl_free() in error code path. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- source3/modules/vfs_posixacl.c | 1 + 1 file changed, 1 insertion(+) 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); -- 2.47.3