1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

Safety fix to detect multiple calls to my_thread_end()

Portability fix (For Mac OS X)
This commit is contained in:
monty@mashka.mysql.fi
2003-10-16 20:55:15 +03:00
parent 3414cf2e9f
commit b1dba93cdb
6 changed files with 56 additions and 31 deletions

View File

@ -621,11 +621,6 @@ void STDCALL mysql_server_end()
my_free((char*) copy_arguments_ptr, MYF(MY_ALLOW_ZERO_PTR));
copy_arguments_ptr=0;
clean_up(0);
#ifdef THREAD
/* Don't call my_thread_end() if the application is using MY_INIT() */
if (!org_my_init_done)
my_thread_end();
#endif
/* If library called my_init(), free memory allocated by it */
if (!org_my_init_done)
my_end(0);