summaryrefslogtreecommitdiff
path: root/client/mysqlbinlog.cc
diff options
context:
space:
mode:
authorserg@serg.mylan <>2005-01-24 15:48:25 +0100
committerserg@serg.mylan <>2005-01-24 15:48:25 +0100
commit67ba2e367a2d21321ae58048d131ab39248dea00 (patch)
treed0b61b703f3c601368669e4acab45d7567a4669b /client/mysqlbinlog.cc
parentb53757ba91f67885911f677d09a2757774998b7b (diff)
downloadmariadb-git-67ba2e367a2d21321ae58048d131ab39248dea00.tar.gz
fixes/cleanups according to Coverity report
Diffstat (limited to 'client/mysqlbinlog.cc')
-rw-r--r--client/mysqlbinlog.cc6
1 files changed, 1 insertions, 5 deletions
diff --git a/client/mysqlbinlog.cc b/client/mysqlbinlog.cc
index de53831c43d..7ddb01d9ec8 100644
--- a/client/mysqlbinlog.cc
+++ b/client/mysqlbinlog.cc
@@ -717,11 +717,7 @@ static int check_master_version(MYSQL* mysql)
if (mysql_query(mysql, "SELECT VERSION()") ||
!(res = mysql_store_result(mysql)))
- {
- mysql_close(mysql);
- die("Error checking master version: %s",
- mysql_error(mysql));
- }
+ die("Error checking master version: %s", mysql_error(mysql));
if (!(row = mysql_fetch_row(res)))
{
mysql_free_result(res);