From: Jeremy Allison Date: Wed, 9 Jun 2021 00:10:59 +0000 (-0700) Subject: s3: VFS: posixacl: Missing acl_free() in error code path. X-Git-Tag: tevent-0.11.0~648 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fc8b3f1878f3654379de2c9ca30bfe4084bc6633;p=thirdparty%2Fsamba.git s3: VFS: posixacl: Missing acl_free() in error code path. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- 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);