diff options
-rw-r--r-- | sql/slave.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/slave.cc b/sql/slave.cc index c6c0de7160b..d5d3ab19c01 100644 --- a/sql/slave.cc +++ b/sql/slave.cc @@ -3639,6 +3639,7 @@ err: net_end(&thd->net); // destructor will not free it, because net.vio is 0 pthread_mutex_lock(&LOCK_thread_count); THD_CHECK_SENTRY(thd); + close_thread_tables(thd); delete thd; pthread_mutex_unlock(&LOCK_thread_count); pthread_cond_broadcast(&mi->stop_cond); // tell the world we are done |