From 00b8d8983e6e6d1fff2d5efdb0709a21b3d2f212 Mon Sep 17 00:00:00 2001 From: Eduardo Silva Date: Wed, 10 Jan 2024 15:07:40 -0600 Subject: [PATCH] lib: monkey: upgrade to v1.7.3 (#8363) Signed-off-by: Eduardo Silva --- lib/monkey/mk_server/mk_http_thread.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/monkey/mk_server/mk_http_thread.c b/lib/monkey/mk_server/mk_http_thread.c index d3c606f3afe..68d0b0d9a4e 100644 --- a/lib/monkey/mk_server/mk_http_thread.c +++ b/lib/monkey/mk_server/mk_http_thread.c @@ -251,6 +251,14 @@ int mk_http_thread_purge(struct mk_http_thread *mth, int close) int mk_http_thread_destroy(struct mk_http_thread *mth) { struct mk_thread *th; + struct mk_http_libco_params *libco_params; + + libco_params = MK_TLS_GET(mk_http_thread_libco_params); + + if (libco_params != NULL) { + mk_mem_free(libco_params); + MK_TLS_SET(mk_http_thread_libco_params, NULL); + } /* Unlink from scheduler thread list */ mk_list_del(&mth->_head);