aboutsummaryrefslogtreecommitdiffstats
path: root/tar/test/test_option_acls.c
diff options
context:
space:
mode:
Diffstat (limited to 'tar/test/test_option_acls.c')
-rw-r--r--tar/test/test_option_acls.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tar/test/test_option_acls.c b/tar/test/test_option_acls.c
index be0db449821a..f2d51d661abf 100644
--- a/tar/test/test_option_acls.c
+++ b/tar/test/test_option_acls.c
@@ -360,8 +360,10 @@ compare_acls(const char *path_a, const char *path_b)
if (richacl_a != NULL) {
richacl_b = richacl_get_file(path_b);
if (richacl_b == NULL &&
- (errno == ENODATA || errno == ENOTSUP || errno == ENOSYS))
+ (errno == ENODATA || errno == ENOTSUP || errno == ENOSYS)) {
+ richacl_free(richacl_a);
return (0);
+ }
failure("richacl_get_file() error: %s (%s)", path_b,
strerror(errno));
if (assert(richacl_b != NULL) == 0) {