summaryrefslogtreecommitdiffstats
path: root/bin/df
diff options
context:
space:
mode:
authoreadler <eadler@FreeBSD.org>2012-09-16 16:08:20 +0000
committereadler <eadler@FreeBSD.org>2012-09-16 16:08:20 +0000
commitfdc252682f645da4c9ac5c2f221a18bb7f124bda (patch)
treeeeb64935aeb90ae9c5da674290cc06bc18eef4ac /bin/df
parent5496f5a384befc6dc39b43decef79b12d83e75a3 (diff)
downloadFreeBSD-src-fdc252682f645da4c9ac5c2f221a18bb7f124bda.zip
FreeBSD-src-fdc252682f645da4c9ac5c2f221a18bb7f124bda.tar.gz
Revert 240527:
mntbuf can poit to memory allocated by getmntinfo(3) which can't be freed PR: bin/171634 Approved by: cperciva (implicit)
Diffstat (limited to 'bin/df')
-rw-r--r--bin/df/df.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/bin/df/df.c b/bin/df/df.c
index 7870412..f865b8f1 100644
--- a/bin/df/df.c
+++ b/bin/df/df.c
@@ -290,7 +290,6 @@ main(int argc, char *argv[])
prtstat(&mntbuf[i], &maxwidths);
if (cflag)
prtstat(&totalbuf, &maxwidths);
- free(mntbuf);
return (rv);
}
OpenPOWER on IntegriCloud