mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-29 06:29:40 +00:00
Merge pull request #12913 from opensourcerouting/fix/memory_leak_with_route_maps
bgpd: Intern attributes before putting into rib-out
This commit is contained in:
commit
9276144ad0
@ -683,11 +683,14 @@ void subgroup_announce_table(struct update_subgroup *subgrp,
|
||||
&attr, NULL)) {
|
||||
/* Check if route can be advertised */
|
||||
if (advertise) {
|
||||
if (!bgp_check_withdrawal(bgp, dest))
|
||||
if (!bgp_check_withdrawal(bgp, dest)) {
|
||||
struct attr *adv_attr =
|
||||
bgp_attr_intern(&attr);
|
||||
|
||||
bgp_adj_out_set_subgroup(
|
||||
dest, subgrp, &attr,
|
||||
dest, subgrp, adv_attr,
|
||||
ri);
|
||||
else
|
||||
} else
|
||||
bgp_adj_out_unset_subgroup(
|
||||
dest, subgrp, 1,
|
||||
bgp_addpath_id_for_peer(
|
||||
|
Loading…
Reference in New Issue
Block a user