1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

fix application verifier crashes

This commit is contained in:
Vladislav Vaintroub
2012-04-15 01:40:00 +02:00
parent 87b6f24106
commit 8bf7aae23e
3 changed files with 10 additions and 2 deletions

View File

@ -29,6 +29,7 @@
#pragma comment(lib, "ws2_32")
#endif
my_bool have_tcpip=0;
extern pthread_key(struct st_my_thread_var*, THR_KEY_mysys);
static void my_win_init(void);
static my_bool win32_init_tcp_ip();
#else
@ -221,7 +222,9 @@ Voluntary context switches %ld, Involuntary context switches %ld\n",
if (have_tcpip)
WSACleanup();
#endif /* __WIN__ */
/* At very last, delete mysys key, it is used everywhere including DBUG */
pthread_key_delete(THR_KEY_mysys);
my_init_done=0;
} /* my_end */