From ac64069f56f9eabd9fa57bc4f1642bcbff36bb60 Mon Sep 17 00:00:00 2001 From: Yann Ylavic Date: Fri, 20 Nov 2020 16:55:10 +0000 Subject: [PATCH] mod_proxy_http2: explicitely apr_thread_exit() at the end of slot_run(). Calling apr_thread_exit() before returning from the thread function avoids leaking the thread's pool (until/unless APR-2.0 is used). git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1883668 13f79535-47bb-0310-9956-ffa450edef68 --- modules/http2/h2_workers.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/http2/h2_workers.c b/modules/http2/h2_workers.c index 1831e31e98b..949ae439c7f 100644 --- a/modules/http2/h2_workers.c +++ b/modules/http2/h2_workers.c @@ -244,6 +244,8 @@ static void* APR_THREAD_FUNC slot_run(apr_thread_t *thread, void *wctx) } slot_done(slot); + + apr_thread_exit(thread, APR_SUCCESS); return NULL; } -- 2.47.3