From 5748ebbe2bf8e8fae83a3f96db982bc355c6a407 Mon Sep 17 00:00:00 2001 From: "CEU\\schielke" Date: Thu, 13 Jun 2024 18:37:19 +0200 Subject: [PATCH] avoid memory leaks if linked with static openssl libs --- httplib.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/httplib.h b/httplib.h index 062f66b..b1b3f7d 100644 --- a/httplib.h +++ b/httplib.h @@ -726,6 +726,10 @@ private: assert(true == static_cast(fn)); fn(); } + +#ifdef CPPHTTPLIB_OPENSSL_SUPPORT + OPENSSL_thread_stop (); +#endif } ThreadPool &pool_;