Commit e7f38f11 authored by Tor Didriksen's avatar Tor Didriksen

merge 5.1 => 5.5

parents 9d41d7c5 50e8ac0b
...@@ -3155,8 +3155,9 @@ fill_schema_table_by_open(THD *thd, bool is_show_fields_or_keys, ...@@ -3155,8 +3155,9 @@ fill_schema_table_by_open(THD *thd, bool is_show_fields_or_keys,
/* Restore original LEX value, statement's arena and THD arena values. */ /* Restore original LEX value, statement's arena and THD arena values. */
lex_end(thd->lex); lex_end(thd->lex);
if (i_s_arena.free_list) // Free items, before restoring backup_arena below.
i_s_arena.free_items(); DBUG_ASSERT(i_s_arena.free_list == NULL);
thd->free_items();
/* /*
For safety reset list of open temporary tables before closing For safety reset list of open temporary tables before closing
......
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