File getfacl-fix-memory-leak.patch of Package acl
From: Andreas Gruenbacher <andreas.gruenbacher@gmail.com>
Date: Thu, 16 Jul 2015 14:04:20 +0200
Subject: getfacl: Fix memory leak
Git-repo: git://git.savannah.nongnu.org/acl.git
Git-commit: 5d8de21bef5ee62ebca93ae81515b6065626e559
Reported by Andreas Stieger <astieger@suse.com>
(https://bugzilla.suse.com/show_bug.cgi?id=929108): Fix a memory leak in
getfacl (allocated acl not being freed).
Acked-by: Jeff Mahoney <jeffm@suse.com>
---
getfacl/getfacl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/getfacl/getfacl.c b/getfacl/getfacl.c
index 679affa..e44b572 100644
--- a/getfacl/getfacl.c
+++ b/getfacl/getfacl.c
@@ -477,7 +477,7 @@ int do_print(const char *path_p, const struct stat *st, int walk_flags, void *un
if (opt_skip_base &&
(!acl || acl_equiv_mode(acl, NULL) == 0) && !default_acl)
- return 0;
+ goto cleanup;
if (opt_print_acl && opt_print_default_acl)
default_prefix = "default:";