From: Mark Stapp Date: Tue, 20 Oct 2020 12:48:12 +0000 (-0400) Subject: zebra: clean up all router id lists X-Git-Tag: base_7.6~388^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=cdc09a4b04e75f3b9d18c5eb9dcba7cb4948e6c9;p=mirror%2Ffrr.git zebra: clean up all router id lists Clean up the ipv6 router-id lists associated with a zvrf - these were being leaked. Signed-off-by: Mark Stapp --- diff --git a/zebra/zebra_vrf.c b/zebra/zebra_vrf.c index d102b02a21..b7cbf5262a 100644 --- a/zebra/zebra_vrf.c +++ b/zebra/zebra_vrf.c @@ -315,6 +315,9 @@ static int zebra_vrf_delete(struct vrf *vrf) list_delete_all_node(zvrf->rid_all_sorted_list); list_delete_all_node(zvrf->rid_lo_sorted_list); + list_delete_all_node(zvrf->rid6_all_sorted_list); + list_delete_all_node(zvrf->rid6_lo_sorted_list); + otable_fini(&zvrf->other_tables); XFREE(MTYPE_ZEBRA_VRF, zvrf); vrf->info = NULL;