-
Incident report
-
Resolution: Fixed
-
Trivial
-
2.2.12rc1, 2.4.8rc1, 3.0.0alpha5
-
Linux 2.6 and higher
In src/libs/zbxsysinfo/linux/sensors.c in function get_device_sensors() we have:
if (NULL == (devicedir = opendir(hwmon_dir))) return; while (NULL != (deviceent = readdir(devicedir))) { ... if (NULL == (sensordir = opendir(devicepath))) return; ... } closedir(devicedir);
Apparently, second return must be replaced with goto out; and out: must be placed before closedir(devicedir).