svn commit: r240565 - head/bin/df

Eitan Adler eadler at FreeBSD.org
Sun Sep 16 16:08:21 UTC 2012


Author: eadler
Date: Sun Sep 16 16:08:20 2012
New Revision: 240565
URL: http://svn.freebsd.org/changeset/base/240565

Log:
  Revert 240527:
  	mntbuf can poit to memory allocated by getmntinfo(3) which can't be freed
  
  PR:		bin/171634
  Approved by:	cperciva (implicit)

Modified:
  head/bin/df/df.c

Modified: head/bin/df/df.c
==============================================================================
--- head/bin/df/df.c	Sun Sep 16 15:35:05 2012	(r240564)
+++ head/bin/df/df.c	Sun Sep 16 16:08:20 2012	(r240565)
@@ -290,7 +290,6 @@ main(int argc, char *argv[])
 			prtstat(&mntbuf[i], &maxwidths);
 	if (cflag)
 		prtstat(&totalbuf, &maxwidths);
-	free(mntbuf);
 	return (rv);
 }
 


More information about the svn-src-all mailing list