Commit a5cfa416 authored by Oleksandr Byelkin's avatar Oleksandr Byelkin

Let us close library and only then free defaults.

parent 5496df8e
...@@ -514,11 +514,11 @@ static void safe_exit(int error, MYSQL *mysql) ...@@ -514,11 +514,11 @@ static void safe_exit(int error, MYSQL *mysql)
if (mysql) if (mysql)
mysql_close(mysql); mysql_close(mysql);
mysql_library_end();
#ifdef HAVE_SMEM #ifdef HAVE_SMEM
my_free(shared_memory_base_name); my_free(shared_memory_base_name);
#endif #endif
free_defaults(argv_to_free); free_defaults(argv_to_free);
mysql_library_end();
my_free(opt_password); my_free(opt_password);
if (error) if (error)
sf_leaking_memory= 1; /* dirty exit, some threads are still running */ sf_leaking_memory= 1; /* dirty exit, some threads are still running */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment