X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fturbostat.c;h=5ab073d547d073fb3d4544143fb3d7f01dd82530;hb=70ea9457f76d6cd953f2cbd64eeda0ff265f47db;hp=42fed52a3e496b8e87036f20150023ce50a56ff2;hpb=c4da209d3b3ef23d03617c15abc3c8365c0ffd2b;p=collectd.git diff --git a/src/turbostat.c b/src/turbostat.c index 42fed52a..5ab073d5 100644 --- 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);