forked from Mirror/frr
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. */
|
/* Process for route leaking. */
|
||||||
vpn_leak_from_vrf_update(bgp_get_default(), bgp_vrf, pi);
|
vpn_leak_from_vrf_update(bgp_get_default(), bgp_vrf, pi);
|
||||||
|
|
||||||
|
bgp_unlock_node(rn);
|
||||||
|
|
||||||
return ret;
|
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. */
|
/* Perform route selection and update zebra, if required. */
|
||||||
ret = evpn_route_select_install(bgp, vpn, rn);
|
ret = evpn_route_select_install(bgp, vpn, rn);
|
||||||
|
|
||||||
|
bgp_unlock_node(rn);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue