summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
Diffstat (limited to 'client')
-rw-r--r--client/mysql.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/client/mysql.cc b/client/mysql.cc
index 824a416ec36..765c44e49c9 100644
--- a/client/mysql.cc
+++ b/client/mysql.cc
@@ -2780,6 +2780,8 @@ static int reconnect(void)
}
if (!connected)
return put_info("Can't connect to the server\n",INFO_ERROR);
+ my_free(server_version,MYF(MY_ALLOW_ZERO_PTR));
+ server_version= 0;
/* purecov: end */
return 0;
}