From: Yann Ylavic Date: Fri, 20 Nov 2020 16:55:10 +0000 (+0000) Subject: mod_proxy_http2: explicitely apr_thread_exit() at the end of slot_run(). X-Git-Tag: 2.5.0-alpha2-ci-test-only~1141 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac64069f56f9eabd9fa57bc4f1642bcbff36bb60;p=thirdparty%2Fapache%2Fhttpd.git 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 --- 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; }