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:
Sri Mohana Singamsetty 2019-11-15 15:39:53 -08:00 committed by GitHub
commit 670812fd13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}