summaryrefslogtreecommitdiff
path: root/zebra/zebra_vrf.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2023-11-13 09:07:06 -0500
committerDonald Sharp <sharpd@nvidia.com>2023-11-13 09:16:45 -0500
commitc416603235c49455f93eaffdcbc0f3a96cca9389 (patch)
tree6515c6d225224d4be424f33972102c0dad23162a /zebra/zebra_vrf.c
parent150e3ea26db9d59bd4c10a2f9f5d7a0a82a42aa5 (diff)
zebra: More memory free up on shutdown
a) nl_batch_tx_buf was not being freed b) the mlag_fifo was not being freed c) the vrf->ns_ctxt was not being freed Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'zebra/zebra_vrf.c')
-rw-r--r--zebra/zebra_vrf.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/zebra/zebra_vrf.c b/zebra/zebra_vrf.c
index 25e6513989..2adae61f54 100644
--- a/zebra/zebra_vrf.c
+++ b/zebra/zebra_vrf.c
@@ -265,6 +265,12 @@ static int zebra_vrf_delete(struct vrf *vrf)
otable_fini(&zvrf->other_tables);
XFREE(MTYPE_ZEBRA_VRF, zvrf);
+
+ if (vrf->ns_ctxt) {
+ ns_delete(vrf->ns_ctxt);
+ vrf->ns_ctxt = NULL;
+ }
+
vrf->info = NULL;
return 0;