summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAndreas Gruenbacher <andreas.gruenbacher@gmail.com>2015-07-16 14:04:20 +0200
committerAndreas Gruenbacher <andreas.gruenbacher@gmail.com>2015-07-16 14:04:20 +0200
commit5d8de21bef5ee62ebca93ae81515b6065626e559 (patch)
treedf4d539ffaedd76e8de14fcbb86dd8c7e4ee893f /tools
parent79f563779b9b9ba89cc2352d70e3cdf27acff513 (diff)
downloadacl-5d8de21bef5ee62ebca93ae81515b6065626e559.tar.gz
getfacl: Fix memory leak
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).
Diffstat (limited to 'tools')
-rw-r--r--tools/getfacl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/getfacl.c b/tools/getfacl.c
index 679affa..e44b572 100644
--- a/tools/getfacl.c
+++ b/tools/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:";