2
0
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:
Jean Delvare
2009-06-20 10:04:52 +00:00
parent ef2f2c04ce
commit 78f496ca62
9 changed files with 44 additions and 4 deletions

View File

@@ -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) {