Commit 75d8544c authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

fix openssl memory leak in main thread

parent 35e713dc
...@@ -6048,6 +6048,9 @@ int mysqld_main(int argc, char **argv) ...@@ -6048,6 +6048,9 @@ int mysqld_main(int argc, char **argv)
if (hEventShutdown) if (hEventShutdown)
CloseHandle(hEventShutdown); CloseHandle(hEventShutdown);
} }
#endif
#if defined(HAVE_OPENSSL) && !defined(EMBEDDED_LIBRARY)
ERR_remove_state(0);
#endif #endif
mysqld_exit(0); mysqld_exit(0);
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment