Commit fde2777b authored by Igor Babaev's avatar Igor Babaev

Another attempt to fix the memory leak of mdev-5400.

parent d5262a63
...@@ -10533,6 +10533,7 @@ void JOIN::cleanup(bool full) ...@@ -10533,6 +10533,7 @@ void JOIN::cleanup(bool full)
{ {
tab->cleanup(); tab->cleanup();
} }
table= 0;
} }
else else
{ {
......
...@@ -628,6 +628,7 @@ bool st_select_lex_unit::exec() ...@@ -628,6 +628,7 @@ bool st_select_lex_unit::exec()
{ {
ha_rows records_at_start= 0; ha_rows records_at_start= 0;
thd->lex->current_select= sl; thd->lex->current_select= sl;
fake_select_lex->uncacheable|= sl->uncacheable;
{ {
set_limit(sl); set_limit(sl);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment