mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-11-01 12:47:16 +00:00
Merge pull request #1003 from donaldsharp/pim_mem_leak
pimd: Fix memory leak on failure case
This commit is contained in:
commit
f887261b92
@ -698,6 +698,8 @@ static struct pim_upstream *pim_upstream_new(struct pim_instance *pim,
|
||||
if (up->sources)
|
||||
list_delete(up->sources);
|
||||
|
||||
list_delete(up->ifchannels);
|
||||
|
||||
hash_release(pim->upstream_hash, up);
|
||||
XFREE(MTYPE_PIM_UPSTREAM, up);
|
||||
return NULL;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user