summaryrefslogtreecommitdiffstats
path: root/pimd/pim_ssmpingd.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_ssmpingd.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_ssmpingd.c')
-rw-r--r--pimd/pim_ssmpingd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pimd/pim_ssmpingd.c b/pimd/pim_ssmpingd.c
index f83a585a8..9e90a3468 100644
--- a/pimd/pim_ssmpingd.c
+++ b/pimd/pim_ssmpingd.c
@@ -51,7 +51,7 @@ void pim_ssmpingd_init(struct pim_instance *pim)
void pim_ssmpingd_destroy(struct pim_instance *pim)
{
if (pim->ssmpingd_list) {
- list_free(pim->ssmpingd_list);
+ list_delete(pim->ssmpingd_list);
pim->ssmpingd_list = 0;
}
}