Revert 240527:

mntbuf can poit to memory allocated by getmntinfo(3) which can't be freed

PR:		bin/171634
Approved by:	cperciva (implicit)
This commit is contained in:
eadler 2012-09-16 16:08:20 +00:00
parent 5496f5a384
commit fdc252682f

View File

@ -290,7 +290,6 @@ main(int argc, char *argv[])
prtstat(&mntbuf[i], &maxwidths);
if (cflag)
prtstat(&totalbuf, &maxwidths);
free(mntbuf);
return (rv);
}