linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Memory leak introduced in commit f8619bef3406a2134082dc41c208105fe028c09f
@ 2012-10-17 12:49 Ludek Finstrle
  2012-10-17 14:03 ` Vinicius Costa Gomes
  2012-10-17 14:08 ` Anderson Lizardo
  0 siblings, 2 replies; 6+ messages in thread
From: Ludek Finstrle @ 2012-10-17 12:49 UTC (permalink / raw)
  To: linux-bluetooth

Hello,

  I see memory leak which was introduced in commit f8619bef3406a2134082dc41c208105fe028c09f:
attrib: Fix not checking if att_data_list_alloc fails

It returns (in src/attrib-server.c) from functions when adl local variable is NULL but 
it doesn't free local variables (read_by_group: group; read_by_type: type; find_info: info).

The patch is very easy but I can't test it with head so I don't want to send possible
crapy patch.

Luf

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

end of thread, other threads:[~2012-10-19  7:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-17 12:49 Memory leak introduced in commit f8619bef3406a2134082dc41c208105fe028c09f Ludek Finstrle
2012-10-17 14:03 ` Vinicius Costa Gomes
2012-10-17 14:08 ` Anderson Lizardo
2012-10-18  8:39   ` [RFC] attrib: Fix memleak if att_data_list_alloc fails Ludek Finstrle
2012-10-18 23:20     ` Vinicius Costa Gomes
2012-10-19  7:42     ` Johan Hedberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).