mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-08 18:20:15 +00:00
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:
parent
6b88faa7ff
commit
3c10fb92c1
@ -1710,6 +1710,9 @@ static int pim_if_new_hook(struct interface *ifp)
|
|||||||
|
|
||||||
static int pim_if_delete_hook(struct interface *ifp)
|
static int pim_if_delete_hook(struct interface *ifp)
|
||||||
{
|
{
|
||||||
|
if (ifp->info)
|
||||||
|
pim_if_delete(ifp);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user