From: Sami Kerola Date: Sun, 5 Feb 2012 21:58:24 +0000 (+0100) Subject: vmstat: open file should be closed, not freed X-Git-Tag: v3.3.3~98 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=30b3c4958cdf929c54868f2d8242060125c89233;p=procps-ng vmstat: open file should be closed, not freed Signed-off-by: Sami Kerola --- diff --git a/vmstat.c b/vmstat.c index f30d877f..814b528d 100644 --- a/vmstat.c +++ b/vmstat.c @@ -563,7 +563,7 @@ static void slabformat(void) } free(slabs); } - free(fSlab); + fclose(fSlab); } static void disksum_format(void)