summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authoreadler <eadler@FreeBSD.org>2012-09-14 23:47:23 +0000
committereadler <eadler@FreeBSD.org>2012-09-14 23:47:23 +0000
commit6aa506d6c7251212aacb1d8e4fcfb90b0a0cd13c (patch)
tree88bcb6e4918d092548f372260974d6ba57cdfd39 /bin
parent124486c6e99f7be897e0691d601900dcd406cdd1 (diff)
downloadFreeBSD-src-6aa506d6c7251212aacb1d8e4fcfb90b0a0cd13c.zip
FreeBSD-src-6aa506d6c7251212aacb1d8e4fcfb90b0a0cd13c.tar.gz
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
Diffstat (limited to 'bin')
-rw-r--r--bin/df/df.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/df/df.c b/bin/df/df.c
index f865b8f1..7870412 100644
--- a/bin/df/df.c
+++ b/bin/df/df.c
@@ -290,6 +290,7 @@ main(int argc, char *argv[])
prtstat(&mntbuf[i], &maxwidths);
if (cflag)
prtstat(&totalbuf, &maxwidths);
+ free(mntbuf);
return (rv);
}
OpenPOWER on IntegriCloud