From 903ad7c94137f7c844cde03befc4ddd8e9713a3b Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Mon, 26 Mar 2012 14:39:52 +0200 Subject: [PATCH] move DBUG_END() after my_thread_global_end(), when all threads have already died. --- mysys/my_init.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mysys/my_init.c b/mysys/my_init.c index bb72d0e0426..cdd07ec6a8b 100644 --- a/mysys/my_init.c +++ b/mysys/my_init.c @@ -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) /*