Don't forget to free the string in error case.
Found with: Coverity Prevent CID: 6585
This commit is contained in:
parent
307713b0cf
commit
7c23796624
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user