Date: Thu, 3 Jun 2010 14:51:29 +0000 (UTC) From: Edward Tomasz Napierala <trasz@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r208786 - head/lib/libc/posix1e Message-ID: <201006031451.o53EpTmM009905@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201006031451.o53EpTmM009905>