Author: trasz Date: Thu Jun 3 14:51:29 2010 New Revision: 208786 URL: http://svn.freebsd.org/changeset/base/208786
Log: Don't forget to free the string in error case. Found with: Coverity Prevent CID: 6585 Modified: head/lib/libc/posix1e/acl_to_text_nfs4.c Modified: head/lib/libc/posix1e/acl_to_text_nfs4.c ============================================================================== --- head/lib/libc/posix1e/acl_to_text_nfs4.c Thu Jun 3 14:29:17 2010 (r208785) +++ head/lib/libc/posix1e/acl_to_text_nfs4.c Thu Jun 3 14:51:29 2010 (r208786) @@ -246,6 +246,7 @@ _nfs4_acl_to_text_np(const acl_t aclp, s error = format_entry(str + off, size - off, entry, flags); if (error) { + free(str); errno = EINVAL; return (NULL); } _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"