mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-06 09:00:55 +00:00
Merge pull request #14224 from Keelan10/fix-bgpd-leak
bgpd: Free memory in set_aspath_replace_access_list
This commit is contained in:
commit
1b52af80fd
@ -6163,6 +6163,7 @@ DEFPY_YANG(
|
||||
char xpath_value[XPATH_MAXLEN];
|
||||
as_t as_configured_value;
|
||||
char replace_value[ASN_STRING_MAX_SIZE * 2];
|
||||
int ret;
|
||||
|
||||
if (configured_asn_str &&
|
||||
!asn_str2asn(configured_asn_str, &as_configured_value)) {
|
||||
@ -6181,7 +6182,9 @@ DEFPY_YANG(
|
||||
"%s/rmap-set-action/frr-bgp-route-map:replace-as-path", xpath);
|
||||
nb_cli_enqueue_change(vty, xpath_value, NB_OP_MODIFY, str);
|
||||
|
||||
return nb_cli_apply_changes(vty, NULL);
|
||||
ret = nb_cli_apply_changes(vty, NULL);
|
||||
XFREE(MTYPE_TMP, str);
|
||||
return ret;
|
||||
}
|
||||
|
||||
DEFPY_YANG(
|
||||
|
Loading…
Reference in New Issue
Block a user