diff --git a/sql/sql_select.cc b/sql/sql_select.cc index da89fdf1675..b487637ba9c 100644 --- a/sql/sql_select.cc +++ b/sql/sql_select.cc @@ -5902,8 +5902,7 @@ void JOIN::join_free(bool full) Optimization: if not EXPLAIN and we are done with the JOIN, free all tables. */ - full= full || (!select_lex->uncacheable && !thd->lex->subqueries && - !thd->lex->describe); + full= full || (!select_lex->uncacheable && !thd->lex->describe); cleanup(full);