Merge branch 'collectd-5.4' into collectd-5.5
[collectd.git] / src / turbostat.c
index 42fed52..5ab073d 100644 (file)
@@ -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);