Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Sep 2012 16:08:20 +0000 (UTC)
From:      Eitan Adler <eadler@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r240565 - head/bin/df
Message-ID:  <201209161608.q8GG8KBQ025640@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201209161608.q8GG8KBQ025640>