summaryrefslogtreecommitdiffstats
path: root/pimd/pim_instance.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2017-08-02 19:16:51 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-08-02 21:39:10 +0200
commit69ccd63e57762dd45ed8fd81b76b94948b58b506 (patch)
treef7eadfe5b69d517d2f873636f084717abbef6b41 /pimd/pim_instance.c
parentMerge pull request #895 from qlyoung/flush-ready (diff)
downloadfrr-69ccd63e57762dd45ed8fd81b76b94948b58b506.tar.xz
frr-69ccd63e57762dd45ed8fd81b76b94948b58b506.zip
pimd: Squash some more memory leaks
When a interface is flapped we were leaking some memory associated with link lists. Especially in the jp_agg code. If your network was/is stable and you are not running at any scale you probably would not see this as impactful at all. Ticket: CM-16392 Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_instance.c')
-rw-r--r--pimd/pim_instance.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pimd/pim_instance.c b/pimd/pim_instance.c
index 7bee75fae..7fc77556e 100644
--- a/pimd/pim_instance.c
+++ b/pimd/pim_instance.c
@@ -48,7 +48,7 @@ static void pim_instance_terminate(struct pim_instance *pim)
}
if (pim->static_routes)
- list_free(pim->static_routes);
+ list_delete(pim->static_routes);
pim_rp_free(pim);