From 7b3f6db70bb9dc1b17136ddae766a79c394aa033 Mon Sep 17 00:00:00 2001 From: yhirose Date: Fri, 22 Feb 2019 08:52:38 -0500 Subject: [PATCH] Fix #128 --- httplib.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/httplib.h b/httplib.h index 5c1ad8b..dea28c8 100644 --- a/httplib.h +++ b/httplib.h @@ -69,6 +69,7 @@ typedef int socket_t; #ifdef CPPHTTPLIB_OPENSSL_SUPPORT #include +#include #endif #ifdef CPPHTTPLIB_ZLIB_SUPPORT @@ -2368,6 +2369,10 @@ public: SSL_load_error_strings(); SSL_library_init(); } + + ~SSLInit() { + ERR_free_strings(); + } }; static SSLInit sslinit_;