svn commit: r264783 - stable/9/usr.bin/find

Christian Brueffer brueffer at FreeBSD.org
Tue Apr 22 21:14:51 UTC 2014


Author: brueffer
Date: Tue Apr 22 21:14:50 2014
New Revision: 264783
URL: http://svnweb.freebsd.org/changeset/base/264783

Log:
  MFC: r264418
  
  Avoid double free in f_acl().
  
  CID:		1018508
  Found with:	Coverity Prevent(tm)

Modified:
  stable/9/usr.bin/find/function.c
Directory Properties:
  stable/9/usr.bin/find/   (props changed)

Modified: stable/9/usr.bin/find/function.c
==============================================================================
--- stable/9/usr.bin/find/function.c	Tue Apr 22 21:13:25 2014	(r264782)
+++ stable/9/usr.bin/find/function.c	Tue Apr 22 21:14:50 2014	(r264783)
@@ -404,7 +404,6 @@ f_acl(PLAN *plan __unused, FTSENT *entry
 	acl_free(facl);
 	if (ret) {
 		warn("%s", entry->fts_accpath);
-		acl_free(facl);
 		return (0);
 	}
 	if (trivial)


More information about the svn-src-stable-9 mailing list