Author: eadler
Date: Fri Sep 14 23:47:23 2012
New Revision: 240527
URL: http://svn.freebsd.org/changeset/base/240527

Log:
  Free memory before exiting in order to
  help tools understand that we're not leaking it.
  
  PR:           bin/171634
  Submitted by: Erik Cederstrand <e...@cederstrand.dk>
  Approved by:  cperciva
  MFC after:    3 days

Modified:
  head/bin/df/df.c

Modified: head/bin/df/df.c
==============================================================================
--- head/bin/df/df.c    Fri Sep 14 22:53:47 2012        (r240526)
+++ head/bin/df/df.c    Fri Sep 14 23:47:23 2012        (r240527)
@@ -290,6 +290,7 @@ main(int argc, char *argv[])
                        prtstat(&mntbuf[i], &maxwidths);
        if (cflag)
                prtstat(&totalbuf, &maxwidths);
+       free(mntbuf);
        return (rv);
 }
 
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to