mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-09 05:58:17 +00:00
pimd: Cleanup rp_info->plist
PIM is leaking the plist data structure in some shutdown cases. Additionally trust XFREE Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
36ef2c109b
commit
ff823fc915
@ -62,6 +62,9 @@ void pim_rp_list_hash_clean(void *data)
|
|||||||
|
|
||||||
static void pim_rp_info_free(struct rp_info *rp_info)
|
static void pim_rp_info_free(struct rp_info *rp_info)
|
||||||
{
|
{
|
||||||
|
if (rp_info->plist)
|
||||||
|
XFREE(MTYPE_PIM_FILTER_NAME, rp_info->plist);
|
||||||
|
|
||||||
XFREE(MTYPE_PIM_RP, rp_info);
|
XFREE(MTYPE_PIM_RP, rp_info);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -600,7 +603,6 @@ int pim_rp_del(struct pim_instance *pim, const char *rp,
|
|||||||
|
|
||||||
if (rp_info->plist) {
|
if (rp_info->plist) {
|
||||||
XFREE(MTYPE_PIM_FILTER_NAME, rp_info->plist);
|
XFREE(MTYPE_PIM_FILTER_NAME, rp_info->plist);
|
||||||
rp_info->plist = NULL;
|
|
||||||
was_plist = true;
|
was_plist = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user