diff options
author | serg@serg.mylan <> | 2005-01-24 15:48:25 +0100 |
---|---|---|
committer | serg@serg.mylan <> | 2005-01-24 15:48:25 +0100 |
commit | 67ba2e367a2d21321ae58048d131ab39248dea00 (patch) | |
tree | d0b61b703f3c601368669e4acab45d7567a4669b /client/mysqlbinlog.cc | |
parent | b53757ba91f67885911f677d09a2757774998b7b (diff) | |
download | mariadb-git-67ba2e367a2d21321ae58048d131ab39248dea00.tar.gz |
fixes/cleanups according to Coverity report
Diffstat (limited to 'client/mysqlbinlog.cc')
-rw-r--r-- | client/mysqlbinlog.cc | 6 |
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); |