summaryrefslogtreecommitdiff
path: root/tests/mysql_client_test.c
diff options
context:
space:
mode:
authorFaramosCZ <mschorm@centrum.cz>2018-11-28 15:25:53 +0100
committerSergey Vojtovich <svoj@mariadb.org>2019-03-22 01:42:04 +0400
commit137812c88a418479c7d637f4075712d9f6c6c82f (patch)
tree19428fd70601a48da91732523174fce4de3e5914 /tests/mysql_client_test.c
parent9d2d80aaceccfb4602c935d6521d59232ca3491c (diff)
downloadmariadb-git-137812c88a418479c7d637f4075712d9f6c6c82f.tar.gz
Fix USE_AFTER_FREE (CWE-416)
swap two lines
Diffstat (limited to 'tests/mysql_client_test.c')
-rw-r--r--tests/mysql_client_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/mysql_client_test.c b/tests/mysql_client_test.c
index 4978faafb67..4c8ee07cdd0 100644
--- a/tests/mysql_client_test.c
+++ b/tests/mysql_client_test.c
@@ -19390,8 +19390,8 @@ static void test_big_packet()
opt_password, current_db, opt_port,
opt_unix_socket, 0)))
{
- mysql_close(mysql_local);
fprintf(stderr, "\n connection failed(%s)", mysql_error(mysql_local));
+ mysql_close(mysql_local);
exit(1);
}