Skip to content

Commit

Permalink
Merge pull request FRRouting#11948 from mobash-rasool/fixes3
Browse files Browse the repository at this point in the history
pimd: Fix memleak in bfd profile
  • Loading branch information
donaldsharp authored Sep 15, 2022
2 parents 0f926d9 + 2ce3c8e commit 48eb0de
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pimd/pim_iface.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 48eb0de

Please sign in to comment.