netlink: fix a memory leak
authorDavid Härdeman <david@hardeman.nu>
Sat, 10 Feb 2024 00:44:48 +0000 (01:44 +0100)
committerdedeckeh <dedeckeh@gmail.com>
Mon, 30 Dec 2024 19:44:26 +0000 (20:44 +0100)
commit066b3dc6ec1a679ce5cd2353d90f8f735193ff40
tree29fd628a60a87445563f380c41bf5447b3c53e63
parentc89b8b3f2ff31084d1bebbb414f396eb3c993e6a
netlink: fix a memory leak

valgrind noted that addrs is allocated in netlink_get_interface_linklocal(),
but never freed in one case. While I was looking at that, I found a mysterious
double-realloc in netlink.c.

Signed-off-by: David Härdeman <david@hardeman.nu>
src/config.c
src/netlink.c