From 2cfdb72b26f8a1c318e53ee122b22a80b37cc9bc Mon Sep 17 00:00:00 2001 From: Mark Stapp Date: Fri, 23 Oct 2020 16:21:47 -0400 Subject: [PATCH] zebra: clean up all router id lists [7.5] Clean up the ipv6 router-id lists associated with a zvrf - these were being leaked (7.5 version). Signed-off-by: Mark Stapp --- zebra/zebra_vrf.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.39.5