summaryrefslogtreecommitdiff
path: root/sql/mysqld.cc
diff options
context:
space:
mode:
authorknielsen@mysql.com <>2006-05-15 18:07:18 +0200
committerknielsen@mysql.com <>2006-05-15 18:07:18 +0200
commitfc16aff7423eff1eb52fcd2522b3454fa8748c70 (patch)
treec90b581837f256bc8b3e0cb47cafcb159c99a19f /sql/mysqld.cc
parentf071779791d2bae55a03a6f2e158907a1f40ae5e (diff)
downloadmariadb-git-fc16aff7423eff1eb52fcd2522b3454fa8748c70.tar.gz
Fix two Valgrind memory leak warnings.
Diffstat (limited to 'sql/mysqld.cc')
-rw-r--r--sql/mysqld.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/mysqld.cc b/sql/mysqld.cc
index 9dd37bbebc9..a9aa3ccb608 100644
--- a/sql/mysqld.cc
+++ b/sql/mysqld.cc
@@ -962,6 +962,10 @@ static void __cdecl kill_server(int sig_ptr)
pthread_join(select_thread, NULL); // wait for main thread
#endif /* __NETWARE__ */
+#if defined(__NETWARE__) || (defined(USE_ONE_SIGNAL_HAND) && !defined(__WIN__) && !defined(OS2))
+ my_thread_end();
+#endif
+
pthread_exit(0); /* purecov: deadcode */
#endif /* EMBEDDED_LIBRARY */