]> git.puffer.fish Git - matthieu/frr.git/commitdiff
nhrpd: Fix nhrpd memory leak
authorKeelan10 <keelan.cannoo@icloud.com>
Mon, 24 Apr 2023 07:00:20 +0000 (11:00 +0400)
committerKeelan10 <keelan.cannoo@icloud.com>
Mon, 24 Apr 2023 07:18:39 +0000 (11:18 +0400)
Free NHRP peers associated with an interface when NHS is deleted on shutdown

Signed-off-by: Keelan Cannoo <keelan.cannoo@icloud.com>
nhrpd/nhrp_nhs.c

index b2af0da4291d9714a183bb4eb25137267751c216..acd3b7df97f68d0c77851e2bcd2f4e3c77d69aa2 100644 (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);
        }
 }