Permalink
Browse files

Free memory before exiting in order to

help tools understand that we're not leaking it.

PR:		bin/171634
Submitted by:	Erik Cederstrand <erik@cederstrand.dk>
Approved by:	cperciva
MFC after:	3 days
  • Loading branch information...
1 parent e264ad3 commit c67c77edfa0f0f63c307c2c2eb0520b1a05307b6 @grimreaper grimreaper committed Sep 14, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 bin/df/df.c
View
@@ -290,6 +290,7 @@ main(int argc, char *argv[])
prtstat(&mntbuf[i], &maxwidths);
if (cflag)
prtstat(&totalbuf, &maxwidths);
+ free(mntbuf);
return (rv);
}

0 comments on commit c67c77e

Please sign in to comment.