Skip to content

Commit

Permalink
Free memory before exiting in order to
Browse files Browse the repository at this point in the history
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
grimreaper committed Sep 14, 2012
1 parent e264ad3 commit c67c77e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bin/df/df.c
Expand Up @@ -290,6 +290,7 @@ main(int argc, char *argv[])
prtstat(&mntbuf[i], &maxwidths);
if (cflag)
prtstat(&totalbuf, &maxwidths);
free(mntbuf);
return (rv);
}

Expand Down

0 comments on commit c67c77e

Please sign in to comment.