summaryrefslogtreecommitdiffstats
path: root/zebra/zebra_vrf.c
diff options
context:
space:
mode:
authorMark Stapp <mjs@voltanet.io>2020-10-20 14:48:12 +0200
committerMark Stapp <mjs@voltanet.io>2020-10-20 14:48:12 +0200
commitcdc09a4b04e75f3b9d18c5eb9dcba7cb4948e6c9 (patch)
tree42a3f2aa0dae4e52be0fb0c4c87e763e146f2e3c /zebra/zebra_vrf.c
parentMerge pull request #7333 from mjstapp/fix_multi_connected (diff)
downloadfrr-cdc09a4b04e75f3b9d18c5eb9dcba7cb4948e6c9.tar.xz
frr-cdc09a4b04e75f3b9d18c5eb9dcba7cb4948e6c9.zip
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 <mjs@voltanet.io>
Diffstat (limited to 'zebra/zebra_vrf.c')
-rw-r--r--zebra/zebra_vrf.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/zebra/zebra_vrf.c b/zebra/zebra_vrf.c
index d102b02a2..b7cbf5262 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;