mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-13 12:37:10 +00:00
Merge pull request #10953 from leonshaw/fix/bgp-rm-leak
bgpd: Fix memory leak in subgroup_announce_check
This commit is contained in:
commit
4e35ece397
@ -2207,6 +2207,7 @@ bool subgroup_announce_check(struct bgp_dest *dest, struct bgp_path_info *pi,
|
||||
ret = route_map_apply(ROUTE_MAP_OUT(filter), p,
|
||||
&rmap_path);
|
||||
|
||||
bgp_attr_flush(&dummy_attr);
|
||||
peer->rmap_type = 0;
|
||||
|
||||
if (ret == RMAP_DENYMATCH) {
|
||||
@ -2216,7 +2217,6 @@ bool subgroup_announce_check(struct bgp_dest *dest, struct bgp_path_info *pi,
|
||||
peer->host, p,
|
||||
ROUTE_MAP_OUT_NAME(filter));
|
||||
|
||||
bgp_attr_flush(&dummy_attr);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user