summaryrefslogtreecommitdiffstats
path: root/crypto/init.c
diff options
context:
space:
mode:
authorBernd Edlinger <bernd.edlinger@hotmail.de>2018-04-26 18:39:51 +0200
committerBernd Edlinger <bernd.edlinger@hotmail.de>2018-04-26 18:39:51 +0200
commit74a8acbdfb2c7f398d1ae2fe914cd32b437f6df4 (patch)
treef363aa794ddcc832e3429079e2ddf672f796f0ab /crypto/init.c
parentWait max. 60 seconds for s_client to connect (diff)
downloadopenssl-74a8acbdfb2c7f398d1ae2fe914cd32b437f6df4.tar.xz
openssl-74a8acbdfb2c7f398d1ae2fe914cd32b437f6df4.zip
Fix memleaks in async api
Fixes: #5950 Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/6038)
Diffstat (limited to 'crypto/init.c')
-rw-r--r--crypto/init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/init.c b/crypto/init.c
index fb7e3ace87..2c8b48ff5b 100644
--- a/crypto/init.c
+++ b/crypto/init.c
@@ -370,9 +370,9 @@ static void ossl_init_thread_stop(struct thread_local_inits_st *locals)
if (locals->async) {
#ifdef OPENSSL_INIT_DEBUG
fprintf(stderr, "OPENSSL_INIT: ossl_init_thread_stop: "
- "ASYNC_cleanup_thread()\n");
+ "async_delete_thread_state()\n");
#endif
- ASYNC_cleanup_thread();
+ async_delete_thread_state();
}
if (locals->err_state) {