projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
zookeeper plugin: remove dead code
[collectd.git]
/
src
/
turbostat.c
diff --git
a/src/turbostat.c
b/src/turbostat.c
index
42fed52
..
5ab073d
100644
(file)
--- a/
src/turbostat.c
+++ b/
src/turbostat.c
@@
-1037,6
+1037,7
@@
parse_int_file(const char *fmt, ...)
}
if (fscanf(filep, "%d", &value) != 1) {
ERROR("turbostat plugin: Failed to parse number from '%s'", path);
+ fclose(filep);
return -1;
}
fclose(filep);