diff options
author | FaramosCZ <mschorm@centrum.cz> | 2018-11-28 15:25:53 +0100 |
---|---|---|
committer | Sergey Vojtovich <svoj@mariadb.org> | 2019-03-22 01:42:04 +0400 |
commit | 137812c88a418479c7d637f4075712d9f6c6c82f (patch) | |
tree | 19428fd70601a48da91732523174fce4de3e5914 /tests | |
parent | 9d2d80aaceccfb4602c935d6521d59232ca3491c (diff) | |
download | mariadb-git-137812c88a418479c7d637f4075712d9f6c6c82f.tar.gz |
Fix USE_AFTER_FREE (CWE-416)
swap two lines
Diffstat (limited to 'tests')
-rw-r--r-- | tests/mysql_client_test.c | 2 |
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); } |