summaryrefslogtreecommitdiff
path: root/vio/vio.c
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mnogosearch.org>2013-10-16 17:37:11 +0400
committerAlexander Barkov <bar@mnogosearch.org>2013-10-16 17:37:11 +0400
commitde4ca539b896abfb2888ce7dee6f7de39d2e9657 (patch)
tree7fc71dec89c69e10684d7caf11525027e7505255 /vio/vio.c
parent6dd9f049ab2c8771feabec447cff66b703392046 (diff)
downloadmariadb-git-de4ca539b896abfb2888ce7dee6f7de39d2e9657.tar.gz
MDEV-4890 Valgrind warnings on shutdown on a build with openSSL
Diffstat (limited to 'vio/vio.c')
-rw-r--r--vio/vio.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/vio/vio.c b/vio/vio.c
index 486fe63da05..7b2cf45142f 100644
--- a/vio/vio.c
+++ b/vio/vio.c
@@ -250,5 +250,11 @@ void vio_end(void)
{
#ifdef HAVE_YASSL
yaSSL_CleanUp();
+#elif defined(HAVE_OPENSSL)
+ // This one is needed on the client side
+ ERR_remove_state(0);
+ ERR_free_strings();
+ EVP_cleanup();
+ CRYPTO_cleanup_all_ex_data();
#endif
}