projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aaf23c2
)
Turbostat: add a missing fclose
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
bd2b2fe
..
9369fb8
100644
(file)
--- a/
src/turbostat.c
+++ b/
src/turbostat.c
@@
-778,6
+778,7
@@
for_all_proc_cpus(int (func)(int))
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;
}