summaryrefslogtreecommitdiffstats
path: root/modules/http2/h2_workers.c
diff options
context:
space:
mode:
authorYann Ylavic <ylavic@apache.org>2020-11-20 17:55:10 +0100
committerYann Ylavic <ylavic@apache.org>2020-11-20 17:55:10 +0100
commitac64069f56f9eabd9fa57bc4f1642bcbff36bb60 (patch)
treee5786056cbc75c13b3a0a51f60bfed1e6ab2b72c /modules/http2/h2_workers.c
parentmod_ssl_ct: join the threads before their parent pools are destroyed. (diff)
downloadapache2-ac64069f56f9eabd9fa57bc4f1642bcbff36bb60.tar.xz
apache2-ac64069f56f9eabd9fa57bc4f1642bcbff36bb60.zip
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
Diffstat (limited to '')
-rw-r--r--modules/http2/h2_workers.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/http2/h2_workers.c b/modules/http2/h2_workers.c
index 1831e31e98..949ae439c7 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;
}