From 9f78d779e316c9afab20a64e17808eba5cb31789 Mon Sep 17 00:00:00 2001 From: "msvensson@neptunus.(none)" <> Date: Mon, 24 Jul 2006 12:48:02 +0200 Subject: [PATCH] Don't close connection to mysql before 'safe_exit', that is done in 'safe_exit' if it decides to exit. --- client/mysqldump.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/client/mysqldump.c b/client/mysqldump.c index 9eecc23abd9..ad350075534 100644 --- a/client/mysqldump.c +++ b/client/mysqldump.c @@ -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; }