From 65e415b16e1ad6c5cdca03dd3ca12051b0002b55 Mon Sep 17 00:00:00 2001 From: Eitan Adler Date: Sun, 16 Sep 2012 16:08:20 +0000 Subject: [PATCH] Revert 240527: mntbuf can poit to memory allocated by getmntinfo(3) which can't be freed PR: bin/171634 Approved by: cperciva (implicit) --- bin/df/df.c | 1 - 1 file changed, 1 deletion(-) diff --git a/bin/df/df.c b/bin/df/df.c index 7870412951bd..f865b8f1eeee 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); }