mirror of
https://github.com/MariaDB/server.git
synced 2026-04-21 15:55:53 +02:00
Let us close library and only then free defaults.
This commit is contained in:
parent
5496df8e5d
commit
a5cfa416b4
1 changed files with 1 additions and 1 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue