mirror of
https://github.com/lm-sensors/lm-sensors
synced 2025-08-30 22:05:11 +00:00
libsensors: New method to free the memory allocated for the internal
representation of chip names. sensord, sensors: Fix a memory leak when one or more chip names are provided on the command line. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5740 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
@@ -334,6 +334,7 @@ int main(int argc, char *argv[])
|
||||
goto exit;
|
||||
}
|
||||
cnt += do_the_real_work(&chip, &err);
|
||||
sensors_free_chip_name(&chip);
|
||||
}
|
||||
|
||||
if (!cnt) {
|
||||
|
Reference in New Issue
Block a user