diff --git a/src/Mayaqua/Encrypt.c b/src/Mayaqua/Encrypt.c index d700fdf6..775950cf 100644 --- a/src/Mayaqua/Encrypt.c +++ b/src/Mayaqua/Encrypt.c @@ -18,6 +18,7 @@ #include #include #include +#include #include #include #include @@ -3684,6 +3685,10 @@ void FreeOpenSSLThreadState() #if OPENSSL_VERSION_NUMBER < 0x10100000L CRYPTO_cleanup_all_ex_data(); ERR_remove_thread_state(NULL); +#else +#ifndef LIBRESSL_VERSION_NUMBER + OPENSSL_thread_stop(); +#endif #endif } diff --git a/src/Mayaqua/Mayaqua.c b/src/Mayaqua/Mayaqua.c index cf574524..38bae62f 100644 --- a/src/Mayaqua/Mayaqua.c +++ b/src/Mayaqua/Mayaqua.c @@ -566,15 +566,15 @@ void FreeMayaqua() // Release of real-time clock FreeTick64(); - // Release of crypt library - FreeCryptLibrary(); - // Release of the string library FreeStringLibrary(); // Release of thread pool FreeThreading(); + // Release of crypt library + FreeCryptLibrary(); + if (IsTrackingEnabled()) { // Show the kernel status