All of lore.kernel.org
 help / color / mirror / Atom feed
* [lm-sensors] Probable memory leak issue
@ 2008-07-31 10:48 Souley Madougou
  0 siblings, 0 replies; 2+ messages in thread
From: Souley Madougou @ 2008-07-31 10:48 UTC (permalink / raw)
  To: lm-sensors

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
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

^ permalink raw reply	[flat|nested] 2+ messages in thread
* Re: [lm-sensors] Probable memory leak issue
@ 2008-09-21 15:08 Jean Delvare
  0 siblings, 0 replies; 2+ messages in thread
From: Jean Delvare @ 2008-09-21 15:08 UTC (permalink / raw)
  To: lm-sensors

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

_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-09-21 15:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-31 10:48 [lm-sensors] Probable memory leak issue Souley Madougou
  -- strict thread matches above, loose matches on Subject: below --
2008-09-21 15:08 Jean Delvare

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.