diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-08-02 13:16:51 -0400 | 
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-08-02 15:39:10 -0400 | 
| commit | 69ccd63e57762dd45ed8fd81b76b94948b58b506 (patch) | |
| tree | f7eadfe5b69d517d2f873636f084717abbef6b41 /pimd/pim_jp_agg.c | |
| parent | dacb17162a71369249ac0703a31ee7983fe37b6d (diff) | |
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.c | 1 | 
1 files changed, 1 insertions, 0 deletions
diff --git a/pimd/pim_jp_agg.c b/pimd/pim_jp_agg.c index a00bed064f..8e0b4ab5e8 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);  | 
