From c5c62e5900cce0037bf9e5c0a4ba9e6b6a8057e0 Mon Sep 17 00:00:00 2001 From: Eitan Adler Date: Fri, 14 Sep 2012 23:47:23 +0000 Subject: [PATCH] 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(+) diff --git a/bin/df/df.c b/bin/df/df.c index f865b8f1eeee..7870412951bd 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); }