mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-15 05:08:02 +00:00
Merge pull request #17811 from enkechen-panw/aggr-fix3
bgpd: fix memory leak in bgp_aggregate_install()
This commit is contained in:
commit
35c0c827f2
@ -7962,8 +7962,15 @@ static void bgp_aggregate_install(
|
||||
* If we have paths with different MEDs, then don't install
|
||||
* (or uninstall) the aggregate route.
|
||||
*/
|
||||
if (aggregate->match_med && aggregate->med_mismatched)
|
||||
if (aggregate->match_med && aggregate->med_mismatched) {
|
||||
aspath_free(aspath);
|
||||
community_free(&community);
|
||||
ecommunity_free(&ecommunity);
|
||||
lcommunity_free(&lcommunity);
|
||||
if (debug)
|
||||
zlog_debug(" aggregate %pFX: med mismatch", p);
|
||||
goto uninstall_aggregate_route;
|
||||
}
|
||||
|
||||
if (aggregate->count > 0) {
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user