summaryrefslogtreecommitdiffstats
path: root/pimd/pim_iface.c
diff options
context:
space:
mode:
authorMobashshera Rasool <mrasool@vmware.com>2022-09-14 19:34:10 +0200
committerMobashshera Rasool <mrasool@vmware.com>2022-09-14 19:34:10 +0200
commit2ce3c8ec587b574e8ff5299d136c37c863660b24 (patch)
treec8c734d9a87c312f435c073af2210df09d8096d9 /pimd/pim_iface.c
parentMerge pull request #11946 from AbhishekNR/debug_igmp_gm (diff)
downloadfrr-2ce3c8ec587b574e8ff5299d136c37c863660b24.tar.xz
frr-2ce3c8ec587b574e8ff5299d136c37c863660b24.zip
pimd: Fix memleak in bfd profile
In function pim_if_delete, pim_ifp->bfd_config.profile needs to be freed. Signed-off-by: Mobashshera Rasool <mrasool@vmware.com>
Diffstat (limited to '')
-rw-r--r--pimd/pim_iface.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/pimd/pim_iface.c b/pimd/pim_iface.c
index 40c4c2306..105d9fabc 100644
--- a/pimd/pim_iface.c
+++ b/pimd/pim_iface.c
@@ -222,6 +222,9 @@ void pim_if_delete(struct interface *ifp)
list_delete(&pim_ifp->upstream_switch_list);
list_delete(&pim_ifp->sec_addr_list);
+ if (pim_ifp->bfd_config.profile)
+ XFREE(MTYPE_TMP, pim_ifp->bfd_config.profile);
+
XFREE(MTYPE_PIM_INTERFACE, pim_ifp->boundary_oil_plist);
XFREE(MTYPE_PIM_INTERFACE, pim_ifp);