Don't close connection to mysql before 'safe_exit', that is done in...

Don't close connection to mysql before 'safe_exit', that is done in 'safe_exit' if it decides to exit.
parent c2e2ebb1
......@@ -959,7 +959,6 @@ static int dbConnect(char *host, char *user,char *passwd)
compatible_mode_normal_str);
if (mysql_query_with_error_report(mysql, 0, buff))
{
mysql_close(mysql);
safe_exit(EX_MYSQLERR);
return 1;
}
......@@ -972,7 +971,6 @@ static int dbConnect(char *host, char *user,char *passwd)
my_snprintf(buff, sizeof(buff), "/*!40103 SET TIME_ZONE='+00:00' */");
if (mysql_query_with_error_report(mysql, 0, buff))
{
mysql_close(mysql);
safe_exit(EX_MYSQLERR);
return 1;
}
......
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