Skip to contentSkip to conversation

Probable memory leak issue

lm-sensors Souley Madougou 1 participant 1 message Jul 31, 2008

lore
Share & tools
lore
#0 lore raw

Dear developers,

I suspect that there is a memory leak issue in your code. In sensors_parse_chip_name() you are allocating memory in the following line:
res->prefix = strndup(name, dash - name);

In some circonstances, this memory is not freed in the sensors_cleanup() function.

Best regards,
Souley Madougou.

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors