mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-05 04:40:21 +00:00
bgpd: memory leak issue fix
In ecommunity_del_val(), ecommunity was not being freed when the last value in the ecommunity was being deleted. Signed-off-by: Samanvitha B Bhargav <bsmanvitha@vmware.com>
This commit is contained in:
parent
f6a460f982
commit
92d537611b
@ -1383,7 +1383,7 @@ bool ecommunity_del_val(struct ecommunity *ecom, struct ecommunity_val *eval)
|
||||
XFREE(MTYPE_ECOMMUNITY_VAL, ecom->val);
|
||||
ecom->val = p;
|
||||
} else
|
||||
ecom->val = NULL;
|
||||
XFREE(MTYPE_ECOMMUNITY_VAL, ecom->val);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user