Skip to content
Commit 155e4e12 authored by Jesper Juhl's avatar Jesper Juhl Committed by David S. Miller
Browse files

batman-adv: Fix mem leak in the batadv_tt_local_event() function



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: default avatarJesper Juhl <jj@chaosbits.net>
Acked-by: default avatarAntonio Quartulli <ordex@autistici.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent be72f63b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment