mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-22563 Segfault on duplicate free of Item_func_in::array
Same array instance in two Item_func_in instances. First Item_func_in instance is freed on table close. Second one is freed on cleanup_after_query(). get_copy() depends on copy ctor for copying an item and hence does shallow copy for default copy ctor. Use build_clone() for deep copy of Item_func_in.
This commit is contained in:
@ -11396,7 +11396,7 @@ Virtual_column_info* Virtual_column_info::clone(THD *thd)
|
||||
return NULL;
|
||||
if (expr)
|
||||
{
|
||||
dst->expr= expr->get_copy(thd);
|
||||
dst->expr= expr->build_clone(thd);
|
||||
if (!dst->expr)
|
||||
return NULL;
|
||||
}
|
||||
|
Reference in New Issue
Block a user