summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: aaf23c2)
raw | patch | inline | side by side (parent: aaf23c2)
author | Vincent Brillault <git@lerya.net> | |
Sat, 23 Aug 2014 23:39:37 +0000 (01:39 +0200) | ||
committer | Vincent Brillault <git@lerya.net> | |
Sat, 28 Feb 2015 06:35:41 +0000 (07:35 +0100) |
src/turbostat.c | patch | blob | history |
diff --git a/src/turbostat.c b/src/turbostat.c
index bd2b2fe845620c2620588901b51942fe88c94667..9369fb80de430631fe77ed0d4bdccb3b6f6df5eb 100644 (file)
--- a/src/turbostat.c
+++ b/src/turbostat.c
retval = fscanf(fp, "cpu %*d %*d %*d %*d %*d %*d %*d %*d %*d %*d\n");
if (retval != 0) {
ERROR("Failed to parse /proc/stat");
+ fclose(fp);
return -ERR_CANT_READ_PROC_STAT;
}