From 3c10fb92c193d3b28537cfe138702693a382e97d Mon Sep 17 00:00:00 2001 From: Igor Ryzhov Date: Mon, 24 Jan 2022 00:17:48 +0300 Subject: [PATCH] pimd: fix interface info memory leak When the interface is deleted from the system, its info must be freed. Signed-off-by: Igor Ryzhov --- pimd/pim_iface.c | 3 +++ 1 file changed, 3 insertions(+) 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; } -- 2.39.5