diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2023-11-15 14:52:10 -0500 |
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2023-11-21 12:41:18 -0500 |
| commit | 0b81a7524d2056b53ea86aab8095f528d645592d (patch) | |
| tree | f69e9cd815085864ec41ae8b4bbbd4deb1ca3ad7 /bgpd/bgp_route.c | |
| parent | 318a8c98b4f8cf29a91da45ad3708a4aaf97c55c (diff) | |
bgpd: MTYPE_BGP was being overused split up
The MTYPE_BGP memory type was being over used as
both the handler for the bgp instance itself as
well as memory associated with name strings.
Let's separate out the two.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'bgpd/bgp_route.c')
| -rw-r--r-- | bgpd/bgp_route.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index b4c97eb2ea..a8fb8275f9 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -6301,7 +6301,7 @@ static void bgp_static_free(struct bgp_static *bgp_static) route_map_counter_decrement(bgp_static->rmap.map); if (bgp_static->prd_pretty) - XFREE(MTYPE_BGP, bgp_static->prd_pretty); + XFREE(MTYPE_BGP_NAME, bgp_static->prd_pretty); XFREE(MTYPE_ATTR, bgp_static->eth_s_id); XFREE(MTYPE_BGP_STATIC, bgp_static); } |
