Commit e6953374 authored by Rex's avatar Rex Committed by Rex Johnston

MDEV-31995-fix short fix for memory leak introduced in MDEV-31995

list elements not correctly allocated in push_back.
parent 29df46f3
...@@ -10448,7 +10448,7 @@ bool st_select_lex::save_item_list_names(THD *thd) ...@@ -10448,7 +10448,7 @@ bool st_select_lex::save_item_list_names(THD *thd)
while ((item= li++)) while ((item= li++))
{ {
if (unlikely(orig_names_of_item_list_elems->push_back( if (unlikely(orig_names_of_item_list_elems->push_back(
new Lex_ident_sys(item->name.str, item->name.length)))) new Lex_ident_sys(item->name.str, item->name.length), thd->mem_root)))
{ {
if (arena) if (arena)
thd->restore_active_arena(arena, &backup); thd->restore_active_arena(arena, &backup);
......
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