mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-09 05:33:42 +00:00
bgpd: fix aspath memory leak in aggr_suppress_map_test
aspth_empty a couple of lines earlier creates an aspath and it must be freed. Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
This commit is contained in:
parent
4dbf2038ea
commit
afb254d792
@ -6942,6 +6942,7 @@ static bool aggr_suppress_map_test(struct bgp *bgp,
|
|||||||
bgp->peer_self->rmap_type = 0;
|
bgp->peer_self->rmap_type = 0;
|
||||||
|
|
||||||
bgp_attr_flush(&attr);
|
bgp_attr_flush(&attr);
|
||||||
|
aspath_unintern(&attr.aspath);
|
||||||
|
|
||||||
return rmr == RMAP_PERMITMATCH;
|
return rmr == RMAP_PERMITMATCH;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user