diff options
Diffstat (limited to 'sql/scheduler.cc')
-rw-r--r-- | sql/scheduler.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/scheduler.cc b/sql/scheduler.cc index 2a0138d06a8..de472ae2504 100644 --- a/sql/scheduler.cc +++ b/sql/scheduler.cc @@ -36,7 +36,10 @@ static bool no_threads_end(THD *thd, bool put_in_cache) { if (thd) + { unlink_thd(thd); + delete thd; + } return 1; // Abort handle_one_connection } |