From cec8bcc400712e129f4062f796c0cab6b3c1f20b Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Fri, 9 Nov 2007 22:37:17 +0000 Subject: [PATCH] [SIGAR-72] close /proc/stat fp --- src/os/linux/linux_sigar.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/os/linux/linux_sigar.c b/src/os/linux/linux_sigar.c index 20adb174..67419cf4 100644 --- a/src/os/linux/linux_sigar.c +++ b/src/os/linux/linux_sigar.c @@ -141,6 +141,8 @@ static int sigar_boot_time_get(sigar_t *sigar) } } + fclose(fp); + if (!found) { /* should never happen */ sigar->boot_time = time(NULL);