summaryrefslogtreecommitdiff
path: root/dbug/dbug.c
diff options
context:
space:
mode:
authorSergei Golubchik <sergii@pisem.net>2014-03-24 20:02:08 +0100
committerSergei Golubchik <sergii@pisem.net>2014-03-24 20:02:08 +0100
commit434bbc34ad1a4307d596907a08e5eca9cb996107 (patch)
treef2180100606857acd6b38b119a3a2bb8639df6e2 /dbug/dbug.c
parentbd4e7dac59f890c0a687a7f96af0fa768e82f180 (diff)
downloadmariadb-git-434bbc34ad1a4307d596907a08e5eca9cb996107.tar.gz
MDEV-5913 Windows: 10.0 crashes on shutdown
add pthread_mutex_destroy(&THR_LOCK_dbug); that was apparently forgotten since the very first MySQL version
Diffstat (limited to 'dbug/dbug.c')
-rw-r--r--dbug/dbug.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/dbug/dbug.c b/dbug/dbug.c
index db5ecb7b95e..763ec9a89b1 100644
--- a/dbug/dbug.c
+++ b/dbug/dbug.c
@@ -1642,6 +1642,7 @@ void _db_end_()
cs->stack= &init_settings;
FreeState(cs, 0);
+ pthread_mutex_destroy(&THR_LOCK_dbug);
init_done= 0;
}