Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 91c2b1a9 authored by Antonio Quartulli's avatar Antonio Quartulli
Browse files

batman-adv: release vlan object after checking the CRC



There is a refcounter unbalance in the CRC checking routine
invoked on OGM reception. A vlan object is retrieved (thus
its refcounter is increased by one) but it is never properly
released. This leads to a memleak because the vlan object
will never be free'd.

Fix this by releasing the vlan object after having read the
CRC.

Reported-by: default avatarRussell Senior <russell@personaltelco.net>
Reported-by: default avatarDaniel <daniel@makrotopia.org>
Reported-by: default avatarcmsv <cmsv@wirelesspt.net>
Signed-off-by: default avatarAntonio Quartulli <antonio@meshcoding.com>
Signed-off-by: default avatarMarek Lindner <mareklindner@neomailbox.ch>
parent e889241f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment