diff options
author | Keelan10 <keelan.cannoo@icloud.com> | 2023-04-24 09:00:20 +0200 |
---|---|---|
committer | Keelan10 <keelan.cannoo@icloud.com> | 2023-04-24 09:18:39 +0200 |
commit | e15ca73e5a780f23b2afef50be674bb366a7b2b1 (patch) | |
tree | e2c99350f52697ef0e89b1b98cbf0a5767069e2b /nhrpd/nhrp_nhs.c | |
parent | Merge pull request #13350 from opensourcerouting/typesafe-fixes-20230421 (diff) | |
download | frr-e15ca73e5a780f23b2afef50be674bb366a7b2b1.tar.xz frr-e15ca73e5a780f23b2afef50be674bb366a7b2b1.zip |
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>
Diffstat (limited to 'nhrpd/nhrp_nhs.c')
-rw-r--r-- | nhrpd/nhrp_nhs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/nhrpd/nhrp_nhs.c b/nhrpd/nhrp_nhs.c index b2af0da42..acd3b7df9 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); } } |