mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-05 15:10:38 +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)) {
|
||||
vty_out(vty, "Invalid character in as-path access-list %s\n",
|
||||
regstr);
|
||||
XFREE(MTYPE_TMP, regstr);
|
||||
return CMD_WARNING_CONFIG_FAILED;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user