From 137812c88a418479c7d637f4075712d9f6c6c82f Mon Sep 17 00:00:00 2001 From: FaramosCZ Date: Wed, 28 Nov 2018 15:25:53 +0100 Subject: [PATCH] Fix USE_AFTER_FREE (CWE-416) swap two lines --- tests/mysql_client_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }