From a5cfa416b4f5d888db856739c69fbb0124fdd8a3 Mon Sep 17 00:00:00 2001 From: Oleksandr Byelkin Date: Mon, 6 May 2019 22:31:46 +0200 Subject: Let us close library and only then free defaults. --- client/mysqlimport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client') diff --git a/client/mysqlimport.c b/client/mysqlimport.c index 02caf2df198..8f42e6f5a8f 100644 --- a/client/mysqlimport.c +++ b/client/mysqlimport.c @@ -514,11 +514,11 @@ static void safe_exit(int error, MYSQL *mysql) if (mysql) mysql_close(mysql); + mysql_library_end(); #ifdef HAVE_SMEM my_free(shared_memory_base_name); #endif free_defaults(argv_to_free); - mysql_library_end(); my_free(opt_password); if (error) sf_leaking_memory= 1; /* dirty exit, some threads are still running */ -- cgit v1.2.1