summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authortonu@volk.internalnet <>2001-11-01 16:59:00 +0200
committertonu@volk.internalnet <>2001-11-01 16:59:00 +0200
commit24805fc7483bb2b071b63f1c5d740815d2bfb4b0 (patch)
treee17781a64cf7808e143fef1d2976fb159c558843 /client
parentf77c684be24a043ac736e45fba5f9edcad8a826a (diff)
downloadmariadb-git-24805fc7483bb2b071b63f1c5d740815d2bfb4b0.tar.gz
SSL fixes.
Diffstat (limited to 'client')
-rw-r--r--client/mysql.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/client/mysql.cc b/client/mysql.cc
index 21a3b422b25..653f6bc9f44 100644
--- a/client/mysql.cc
+++ b/client/mysql.cc
@@ -379,6 +379,13 @@ int main(int argc,char *argv[])
sig_handler mysql_end(int sig)
{
mysql_close(&mysql);
+#ifdef HAVE_OPENSSL
+ my_free(opt_ssl_key,MYF(MY_ALLOW_ZERO_PTR));
+ my_free(opt_ssl_cert,MYF(MY_ALLOW_ZERO_PTR));
+ my_free(opt_ssl_ca,MYF(MY_ALLOW_ZERO_PTR));
+ my_free(opt_ssl_capath,MYF(MY_ALLOW_ZERO_PTR));
+ my_free(opt_ssl_cipher,MYF(MY_ALLOW_ZERO_PTR));
+#endif
#ifdef HAVE_READLINE
if (!status.batch && !quick && !opt_html && !opt_xml)
{