mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-09 11:15:54 +00:00
Merge pull request #11666 from opensourcerouting/fix/memory_leak_for_regexp_bgp_aspath
bgpd: Free memory for as-path filter if regexp is wrong
This commit is contained in:
commit
9c24c1580a
@ -485,6 +485,7 @@ DEFUN(as_path, bgp_as_path_cmd,
|
|||||||
if (!config_bgp_aspath_validate(regstr)) {
|
if (!config_bgp_aspath_validate(regstr)) {
|
||||||
vty_out(vty, "Invalid character in as-path access-list %s\n",
|
vty_out(vty, "Invalid character in as-path access-list %s\n",
|
||||||
regstr);
|
regstr);
|
||||||
|
XFREE(MTYPE_TMP, regstr);
|
||||||
return CMD_WARNING_CONFIG_FAILED;
|
return CMD_WARNING_CONFIG_FAILED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user