From 2b1e5ced04bf0c8c6d8053cb798ab36ebcee9df2 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Mon, 28 Oct 2024 17:51:04 -0400 Subject: [PATCH] bgpd: Remove call into event_master_free_unused This call was originally put into place to help reduce memory problems associated with bgp having a bajillion events under load and then we would have a bunch of events ready to be used on the unused list. In the meantime code was put into place that limited the depth of the unused list to 10 elements. This call has now become unnecessary. Let's just remove it. Signed-off-by: Donald Sharp --- bgpd/bgpd.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/bgpd/bgpd.c b/bgpd/bgpd.c index d87c6d7752..22f1cf8414 100644 --- a/bgpd/bgpd.c +++ b/bgpd/bgpd.c @@ -4223,8 +4223,6 @@ int bgp_delete(struct bgp *bgp) if (bgp->process_queue) work_queue_free_and_null(&bgp->process_queue); - event_master_free_unused(bm->master); - if (!IS_BGP_INSTANCE_HIDDEN(bgp)) bgp_unlock(bgp); /* initial reference */ else {