diff options
| author | Mark Stapp <mjs@voltanet.io> | 2020-10-20 08:48:12 -0400 |
|---|---|---|
| committer | Mark Stapp <mjs@voltanet.io> | 2020-10-20 08:48:12 -0400 |
| commit | cdc09a4b04e75f3b9d18c5eb9dcba7cb4948e6c9 (patch) | |
| tree | 42a3f2aa0dae4e52be0fb0c4c87e763e146f2e3c /zebra/zebra_vrf.c | |
| parent | c85b63238ae18baaabd833cdbfba79bba227a0e0 (diff) | |
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.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; |
