mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-04-28 15:36:25 +00:00
Merge pull request #5312 from chiragshah6/evpn_dev2
bgpd: fix memory leak in vni-vrf route tables for evpn routes
This commit is contained in:
commit
670812fd13
@ -2583,6 +2583,8 @@ static int install_evpn_route_entry_in_vrf(struct bgp *bgp_vrf,
|
||||
/* Process for route leaking. */
|
||||
vpn_leak_from_vrf_update(bgp_get_default(), bgp_vrf, pi);
|
||||
|
||||
bgp_unlock_node(rn);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
@ -2638,6 +2640,8 @@ static int install_evpn_route_entry(struct bgp *bgp, struct bgpevpn *vpn,
|
||||
/* Perform route selection and update zebra, if required. */
|
||||
ret = evpn_route_select_install(bgp, vpn, rn);
|
||||
|
||||
bgp_unlock_node(rn);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user