aboutsummaryrefslogtreecommitdiffstats
path: root/libarchive/archive_disk_acl_sunos.c
diff options
context:
space:
mode:
Diffstat (limited to 'libarchive/archive_disk_acl_sunos.c')
-rw-r--r--libarchive/archive_disk_acl_sunos.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/libarchive/archive_disk_acl_sunos.c b/libarchive/archive_disk_acl_sunos.c
index bc84fd6782f3..b0f5dfad9b13 100644
--- a/libarchive/archive_disk_acl_sunos.c
+++ b/libarchive/archive_disk_acl_sunos.c
@@ -145,10 +145,8 @@ sunacl_get(int cmd, int *aclcnt, int fd, const char *path)
cnt = facl(fd, cmd, cnt, aclp);
}
} else {
- if (aclp != NULL) {
- free(aclp);
- aclp = NULL;
- }
+ free(aclp);
+ aclp = NULL;
break;
}
}