nhrpd: Fix nhrpd memory leak

Free NHRP peers associated with an interface when NHS is deleted on shutdown

Signed-off-by: Keelan Cannoo <keelan.cannoo@icloud.com>
This commit is contained in:
Keelan10 2023-04-24 11:00:20 +04:00
parent 3eefea9249
commit e15ca73e5a
1 changed files with 1 additions and 0 deletions

View File

@ -420,6 +420,7 @@ void nhrp_nhs_terminate(void)
&nifp->afi[afi].nhslist_head, nhs)
nhrp_nhs_free(nifp, afi, nhs);
}
nhrp_peer_interface_del(ifp);
}
}