[Commits] a5cfa416b4f: Let us close library and only then free defaults.

Oleksandr Byelkin sanja at mariadb.com
Mon May 6 23:31:46 EEST 2019


revision-id: a5cfa416b4f5d888db856739c69fbb0124fdd8a3 (mariadb-10.2.23-119-ga5cfa416b4f)
parent(s): 5496df8e5daabcbd3eca8d96a3d6caa450913acc
author: Oleksandr Byelkin
committer: Oleksandr Byelkin
timestamp: 2019-05-06 22:31:46 +0200
message:

Let us close library and only then free defaults.

---
 client/mysqlimport.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 */


More information about the commits mailing list