From 6aa506d6c7251212aacb1d8e4fcfb90b0a0cd13c Mon Sep 17 00:00:00 2001 From: eadler Date: Fri, 14 Sep 2012 23:47:23 +0000 Subject: Free memory before exiting in order to help tools understand that we're not leaking it. PR: bin/171634 Submitted by: Erik Cederstrand Approved by: cperciva MFC after: 3 days --- bin/df/df.c | 1 + 1 file changed, 1 insertion(+) (limited to 'bin') 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); } -- cgit v1.1