mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-04 20:18:54 +00:00
bgpd: Free temporary memory after using argv_concat()
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
This commit is contained in:
parent
d156e44cf4
commit
4fff31a427
@ -8795,7 +8795,7 @@ DEFPY(neighbor_path_attribute_discard,
|
||||
{
|
||||
struct peer *peer;
|
||||
int idx = 0;
|
||||
const char *discard_attrs = NULL;
|
||||
char *discard_attrs = NULL;
|
||||
|
||||
peer = peer_and_group_lookup_vty(vty, neighbor);
|
||||
if (!peer)
|
||||
@ -8807,6 +8807,8 @@ DEFPY(neighbor_path_attribute_discard,
|
||||
|
||||
bgp_path_attribute_discard_vty(vty, peer, discard_attrs, true);
|
||||
|
||||
XFREE(MTYPE_TMP, discard_attrs);
|
||||
|
||||
return CMD_SUCCESS;
|
||||
}
|
||||
|
||||
@ -8822,7 +8824,7 @@ DEFPY(no_neighbor_path_attribute_discard,
|
||||
{
|
||||
struct peer *peer;
|
||||
int idx = 0;
|
||||
const char *discard_attrs = NULL;
|
||||
char *discard_attrs = NULL;
|
||||
|
||||
peer = peer_and_group_lookup_vty(vty, neighbor);
|
||||
if (!peer)
|
||||
@ -8834,6 +8836,8 @@ DEFPY(no_neighbor_path_attribute_discard,
|
||||
|
||||
bgp_path_attribute_discard_vty(vty, peer, discard_attrs, false);
|
||||
|
||||
XFREE(MTYPE_TMP, discard_attrs);
|
||||
|
||||
return CMD_SUCCESS;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user