From: Igor Ryzhov Date: Sun, 23 Jan 2022 21:17:48 +0000 (+0300) Subject: pimd: fix interface info memory leak X-Git-Tag: base_8.2~12^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=3c10fb92c193d3b28537cfe138702693a382e97d;p=matthieu%2Ffrr.git pimd: fix interface info memory leak When the interface is deleted from the system, its info must be freed. Signed-off-by: Igor Ryzhov --- diff --git a/pimd/pim_iface.c b/pimd/pim_iface.c index 6727be01bc..72e04460d5 100644 --- a/pimd/pim_iface.c +++ b/pimd/pim_iface.c @@ -1710,6 +1710,9 @@ static int pim_if_new_hook(struct interface *ifp) static int pim_if_delete_hook(struct interface *ifp) { + if (ifp->info) + pim_if_delete(ifp); + return 0; }