From a3a11ad455c372a0326b2c9024afa54d9a19680c Mon Sep 17 00:00:00 2001 From: Edward Tomasz Napierala Date: Thu, 3 Jun 2010 14:51:29 +0000 Subject: [PATCH] Don't forget to free the string in error case. Found with: Coverity Prevent CID: 6585 --- lib/libc/posix1e/acl_to_text_nfs4.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/libc/posix1e/acl_to_text_nfs4.c b/lib/libc/posix1e/acl_to_text_nfs4.c index 5d0aa319143b..a60a8d3db514 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); }