Don't forget to free the string in error case.

Found with:	Coverity Prevent
CID:		6585
This commit is contained in:
trasz 2010-06-03 14:51:29 +00:00
parent 307713b0cf
commit 7c23796624

View File

@ -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);
}