29 lines
886 B
Diff
29 lines
886 B
Diff
|
From 5d8de21bef5ee62ebca93ae81515b6065626e559 Mon Sep 17 00:00:00 2001
|
||
|
From: Andreas Gruenbacher <andreas.gruenbacher@gmail.com>
|
||
|
Date: Thu, 16 Jul 2015 14:04:20 +0200
|
||
|
Subject: [PATCH 26/34] 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).
|
||
|
---
|
||
|
tools/getfacl.c | 2 +-
|
||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
||
|
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:";
|
||
|
--
|
||
|
2.5.2
|
||
|
|