move DBUG_END() after my_thread_global_end(), when all threads have already died.

This commit is contained in:
Sergei Golubchik 2012-03-26 14:39:52 +02:00
parent d92009231d
commit 903ad7c941

View File

@ -201,11 +201,12 @@ Voluntary context switches %ld, Involuntary context switches %ld\n",
#endif
}
my_thread_end();
my_thread_global_end();
if (!(infoflag & MY_DONT_FREE_DBUG))
DBUG_END(); /* Must be done as late as possible */
my_thread_end();
my_thread_global_end();
my_mutex_end();
#if defined(SAFE_MUTEX)
/*