summaryrefslogtreecommitdiffstats
path: root/pimd/pim_jp_agg.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_jp_agg.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_jp_agg.c')
-rw-r--r--pimd/pim_jp_agg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pimd/pim_jp_agg.c b/pimd/pim_jp_agg.c
index a00bed064..8e0b4ab5e 100644
--- a/pimd/pim_jp_agg.c
+++ b/pimd/pim_jp_agg.c
@@ -108,6 +108,7 @@ void pim_jp_agg_clear_group(struct list *group)
js->up = NULL;
XFREE(MTYPE_PIM_JP_AGG_SOURCE, js);
}
+ list_delete(jag->sources);
jag->sources = NULL;
listnode_delete(group, jag);
XFREE(MTYPE_PIM_JP_AGG_GROUP, jag);