summaryrefslogtreecommitdiffstats
path: root/lib/libc/posix1e/acl_to_text_nfs4.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/posix1e/acl_to_text_nfs4.c')
-rw-r--r--lib/libc/posix1e/acl_to_text_nfs4.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libc/posix1e/acl_to_text_nfs4.c b/lib/libc/posix1e/acl_to_text_nfs4.c
index 5d0aa31..a60a8d3 100644
--- a/lib/libc/posix1e/acl_to_text_nfs4.c
+++ b/lib/libc/posix1e/acl_to_text_nfs4.c
@@ -246,6 +246,7 @@ _nfs4_acl_to_text_np(const acl_t aclp, ssize_t *len_p, int flags)
error = format_entry(str + off, size - off, entry, flags);
if (error) {
+ free(str);
errno = EINVAL;
return (NULL);
}
OpenPOWER on IntegriCloud