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

This commit is contained in:
Igor Babaev 2013-12-11 10:13:08 -08:00
parent d5262a63fc
commit fde2777b27
2 changed files with 2 additions and 0 deletions

View file

@ -10533,6 +10533,7 @@ void JOIN::cleanup(bool full)
{
tab->cleanup();
}
table= 0;
}
else
{

View file

@ -628,6 +628,7 @@ bool st_select_lex_unit::exec()
{
ha_rows records_at_start= 0;
thd->lex->current_select= sl;
fake_select_lex->uncacheable|= sl->uncacheable;
{
set_limit(sl);