From e15ca73e5a780f23b2afef50be674bb366a7b2b1 Mon Sep 17 00:00:00 2001 From: Keelan10 Date: Mon, 24 Apr 2023 11:00:20 +0400 Subject: [PATCH] nhrpd: Fix nhrpd memory leak Free NHRP peers associated with an interface when NHS is deleted on shutdown Signed-off-by: Keelan Cannoo --- nhrpd/nhrp_nhs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/nhrpd/nhrp_nhs.c b/nhrpd/nhrp_nhs.c index b2af0da429..acd3b7df97 100644 --- a/nhrpd/nhrp_nhs.c +++ b/nhrpd/nhrp_nhs.c @@ -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); } }