Commit 605da1c9f3 for frr
commit 605da1c9f3d9e5159f110bf07dabea2e69484fca
Author: Nageswara Soma <nsoma@cisco.com>
Date: Mon Apr 20 13:11:05 2026 -0700
bgpd: free static EVPN router MAC
Free bgp_static->router_mac in bgp_static_free() so an
EVPN static route releases its router MAC allocation
when the route is deleted.
Signed-off-by: Nageswara Soma <nsoma@cisco.com>
diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c
index 4268f9d08c..4bc6b226dd 100644
--- a/bgpd/bgp_route.c
+++ b/bgpd/bgp_route.c
@@ -8959,6 +8959,7 @@ static void bgp_static_free(struct bgp_static *bgp_static)
if (bgp_static->prd_pretty)
XFREE(MTYPE_BGP_NAME, bgp_static->prd_pretty);
XFREE(MTYPE_ATTR, bgp_static->eth_s_id);
+ XFREE(MTYPE_ATTR, bgp_static->router_mac);
XFREE(MTYPE_BGP_STATIC, bgp_static);
}