summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOleksandr Byelkin <sanja@mariadb.com>2019-05-06 22:31:46 +0200
committerOleksandr Byelkin <sanja@mariadb.com>2019-05-06 22:31:46 +0200
commita5cfa416b4f5d888db856739c69fbb0124fdd8a3 (patch)
treed32f9f55552f9125c60b7ea520fbf7ac835e7147
parent5496df8e5daabcbd3eca8d96a3d6caa450913acc (diff)
downloadmariadb-git-a5cfa416b4f5d888db856739c69fbb0124fdd8a3.tar.gz
Let us close library and only then free defaults.
-rw-r--r--client/mysqlimport.c2
1 files changed, 1 insertions, 1 deletions
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 */