]> granicus.if.org Git - procps-ng/commitdiff
vmstat: open file should be closed, not freed
authorSami Kerola <kerolasa@iki.fi>
Sun, 5 Feb 2012 21:58:24 +0000 (22:58 +0100)
committerSami Kerola <kerolasa@iki.fi>
Sun, 5 Feb 2012 22:15:54 +0000 (23:15 +0100)
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
vmstat.c

index f30d877f9b804d88601dc00e8f8c1be3505872e3..814b528d69feac109c15ae28133f1288929be264 100644 (file)
--- 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)