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

Found with:	Coverity Prevent
CID:		6585
This commit is contained in:
Edward Tomasz Napierala 2010-06-03 14:51:29 +00:00
parent d72fb30a43
commit a3a11ad455

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