pimd: fix interface info memory leak

When the interface is deleted from the system, its info must be freed.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
This commit is contained in:
Igor Ryzhov 2022-01-24 00:17:48 +03:00
parent 6b88faa7ff
commit 3c10fb92c1

View File

@ -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;
}