diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-08-03 02:06:15 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-08-03 02:06:15 +0200 |
commit | 27cfe2224c91756874718ba9e6ae4998912f3688 (patch) | |
tree | bb30338778cc7699ab82797cf9148dfb9261c40a /pimd | |
parent | pimd: Cleanup rp_info->plist (diff) | |
download | frr-27cfe2224c91756874718ba9e6ae4998912f3688.tar.xz frr-27cfe2224c91756874718ba9e6ae4998912f3688.zip |
pimd: Properly cleanup ssm
Properly cleanup the ssm data structure on termination.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd')
-rw-r--r-- | pimd/pim_ssm.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pimd/pim_ssm.c b/pimd/pim_ssm.c index d35f5cff7..1f7cfcaa9 100644 --- a/pimd/pim_ssm.c +++ b/pimd/pim_ssm.c @@ -146,6 +146,11 @@ void *pim_ssm_init(void) void pim_ssm_terminate(struct pim_ssm *ssm) { - if (ssm && ssm->plist_name) + if (!ssm) + return; + + if (ssm->plist_name) XFREE(MTYPE_PIM_FILTER_NAME, ssm->plist_name); + + XFREE(MTYPE_PIM_SSM_INFO, ssm); } |