Thread (4 messages) flat view 4 messages, 3 authors, 2012-08-08

Re: [PATCH] batman-adv: Fix mem leak in the batadv_tt_local_event() function

From: Antonio Quartulli <hidden>
Date: 2012-08-07 18:50:45
Also in: batman, lkml

On Tue, Aug 07, 2012 at 08:32:34PM +0200, Jesper Juhl wrote:
Memory is allocated for 'tt_change_node' with kmalloc().
'tt_change_node' may go out of scope really being used for anything
(except have a few members initialized) if we hit the 'del:' label.
This patch makes sure we free the memory in that case.

Signed-off-by: Jesper Juhl <redacted>
Acked-by: Antonio Quartulli <redacted>


Thank you very much Jepser!


-- 
Antonio Quartulli

..each of us alone is worth nothing..
Ernesto "Che" Guevara

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help