svn commit: r208786 - head/lib/libc/posix1e
Edward Tomasz Napierala
trasz at FreeBSD.org
Thu Jun 3 14:51:29 UTC 2010
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);
}
More information about the svn-src-all
mailing list