summaryrefslogtreecommitdiff
path: root/pimd/pim_mlag.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2020-07-16 08:13:21 -0400
committerDonald Sharp <sharpd@cumulusnetworks.com>2020-07-16 08:13:21 -0400
commit892c2c4468befae94e602b6f2c7605f028e70d7a (patch)
treeb587ff83ed1d7a40cf7b4ab12f8009fdb0d152a0 /pimd/pim_mlag.c
parent249df50a203faecf099faaeb3f41a4beb5029589 (diff)
pimd: Cleanup some small memory leaks on exit
We were not properly cleaning up some memory in the pim mlag subsystem. Clean it up on exit. Signed-off-by: Donald Sharp <sharpc@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_mlag.c')
-rw-r--r--pimd/pim_mlag.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/pimd/pim_mlag.c b/pimd/pim_mlag.c
index 305dd5cf2c..2dfc0af1de 100644
--- a/pimd/pim_mlag.c
+++ b/pimd/pim_mlag.c
@@ -1082,6 +1082,14 @@ void pim_instance_mlag_terminate(struct pim_instance *pim)
pim->inst_mlag_intf_cnt = 0;
}
+void pim_mlag_terminate(void)
+{
+ stream_free(router->mlag_stream);
+ router->mlag_stream = NULL;
+ stream_fifo_free(router->mlag_fifo);
+ router->mlag_fifo = NULL;
+}
+
void pim_mlag_init(void)
{
pim_mlag_param_reset();