From 30b3c4958cdf929c54868f2d8242060125c89233 Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Sun, 5 Feb 2012 22:58:24 +0100 Subject: [PATCH] vmstat: open file should be closed, not freed Signed-off-by: Sami Kerola --- vmstat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)