]> git.proxmox.com Git - mirror_frr.git/commit - bgpd/bgp_route.c
bgpd: fix memory leaks when using route-maps
authorIgor Ryzhov <iryzhov@nfware.com>
Wed, 15 Sep 2021 19:45:23 +0000 (22:45 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Wed, 15 Sep 2021 19:45:23 +0000 (22:45 +0300)
commitee522f572995074d5b0d840457f40a0eb3f0e40c
treeec5508957ab808bca33d710092a256b689b2a315
parentbc4477ecbdca408c8a3757f687fd18564af754ec
bgpd: fix memory leaks when using route-maps

There are places where we use route-maps using duplicated attributes and
neither intern nor flush them after the usage. If a route-map has set
rules for aspath/communities, they will be allocated and never freed.
We should always flush unneeded duplicated attributes.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
bgpd/bgp_conditional_adv.c
bgpd/bgp_route.c