Probable memory leak issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 31 Jul 2008 12:48:49 +0200, Souley Madougou wrote:
> 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.

Can you please send a patch fixing this problem you're seeing? If not,
please at least tell which version of lm-sensors you're looking at, and
what circumstances it takes to trigger the leak, so that I get a chance
to reproduce and fix it.

Thanks,
-- 
Jean Delvare




[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux