git: 6fa0b2b484d9 - stable/13 - getfacl: free `acl` in print_acl error path
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 12 Jul 2023 03:10:52 UTC
The branch stable/13 has been updated by kevans: URL: https://cgit.FreeBSD.org/src/commit/?id=6fa0b2b484d94086f07860e03b8a63567420b317 commit 6fa0b2b484d94086f07860e03b8a63567420b317 Author: Kyle Evans <kevans@FreeBSD.org> AuthorDate: 2023-06-22 04:58:33 +0000 Commit: Kyle Evans <kevans@FreeBSD.org> CommitDate: 2023-07-11 15:05:29 +0000 getfacl: free `acl` in print_acl error path Sponsored by: Klara, Inc. (cherry picked from commit 781624ca2d054430052c828ba8d2c2eaf2d733e7) --- bin/getfacl/getfacl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/getfacl/getfacl.c b/bin/getfacl/getfacl.c index d59ddbcfc871..187b928a981b 100644 --- a/bin/getfacl/getfacl.c +++ b/bin/getfacl/getfacl.c @@ -248,6 +248,7 @@ print_acl(char *path, acl_type_t type, int hflag, int iflag, int nflag, acl_text = acl_to_text_np(acl, 0, flags); if (!acl_text) { warn("%s: acl_to_text_np() failed", path); + (void)acl_free(acl); return(-1); }