diff --git a/cpp/src/metrics/SystemInfo.cpp b/cpp/src/metrics/SystemInfo.cpp index 61ae42c438b35598b77b9ffff1ad82a3f39b996a..5db2448ee92387995ccb8eec0f38ec738678d971 100644 --- a/cpp/src/metrics/SystemInfo.cpp +++ b/cpp/src/metrics/SystemInfo.cpp @@ -245,6 +245,7 @@ SystemInfo::CPUTemperature(){ float temp; fscanf(file, "%f", &temp); result.push_back(temp / 1000); + fclose(file); } }