From: Florin Coras Date: Wed, 16 Jun 2021 21:41:01 +0000 (-0700) Subject: vcl: fix worker cleanup X-Git-Tag: v22.02-rc0~310 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F51%2F32751%2F2;p=vpp.git vcl: fix worker cleanup Type: fix Signed-off-by: Florin Coras Change-Id: I575068df56623f24c0290fa42b8d301548a089d4 --- diff --git a/src/vcl/vcl_private.c b/src/vcl/vcl_private.c index 45c208d87f7..712c07049c6 100644 --- a/src/vcl/vcl_private.c +++ b/src/vcl/vcl_private.c @@ -128,11 +128,18 @@ vcl_worker_cleanup (vcl_worker_t * wrk, u8 notify_vpp) if (wrk->mqs_epfd > 0) close (wrk->mqs_epfd); + pool_free (wrk->sessions); + pool_free (wrk->mq_evt_conns); hash_free (wrk->session_index_by_vpp_handles); vec_free (wrk->mq_events); vec_free (wrk->mq_msg_vector); vec_free (wrk->ep_level_evts); vec_free (wrk->ep_level_evts_fl); + vec_free (wrk->unhandled_evts_vector); + vec_free (wrk->pending_session_wrk_updates); + clib_bitmap_free (wrk->rd_bitmap); + clib_bitmap_free (wrk->wr_bitmap); + clib_bitmap_free (wrk->ex_bitmap); vcl_worker_free (wrk); clib_spinlock_unlock (&vcm->workers_lock); }