summaryrefslogtreecommitdiff
path: root/client/mysqldump.c
diff options
context:
space:
mode:
authorunknown <msvensson@neptunus.(none)>2006-07-24 12:48:02 +0200
committerunknown <msvensson@neptunus.(none)>2006-07-24 12:48:02 +0200
commit6fc7c5d9e021b3e09eae1eeeae04973b7c74e304 (patch)
tree42efd81b9427dccd89c5833af8753a4b431750b8 /client/mysqldump.c
parent2870c7f91f1d93e3774a7d92c901e276c6f0cedd (diff)
downloadmariadb-git-6fc7c5d9e021b3e09eae1eeeae04973b7c74e304.tar.gz
Don't close connection to mysql before 'safe_exit', that is done in 'safe_exit' if it decides to exit.
Diffstat (limited to 'client/mysqldump.c')
-rw-r--r--client/mysqldump.c2
1 files changed, 0 insertions, 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;
}