summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorEugene Kosov <claprix@yandex.ru>2019-10-30 13:23:15 +0300
committerEugene Kosov <claprix@yandex.ru>2019-10-30 13:23:15 +0300
commitb8eff8bce4505478dcb1981d344d917782c6e226 (patch)
treeef760f8f3dbc0626eb666f8d9f74d2f8150b6351 /sql
parenta7e3008ab3d368c2e2957b346647a7656d638e5c (diff)
downloadmariadb-git-b8eff8bce4505478dcb1981d344d917782c6e226.tar.gz
avoid accessing TLS
Diffstat (limited to 'sql')
-rw-r--r--sql/sql_show.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_show.cc b/sql/sql_show.cc
index c63b8b0f8a8..fbdb76e9e71 100644
--- a/sql/sql_show.cc
+++ b/sql/sql_show.cc
@@ -7708,7 +7708,7 @@ TABLE *create_schema_table(THD *thd, TABLE_LIST *table_list)
item->maybe_null= (fields_info->field_flags & MY_I_S_MAYBE_NULL);
field_count++;
}
- TMP_TABLE_PARAM *tmp_table_param = new TMP_TABLE_PARAM;
+ TMP_TABLE_PARAM *tmp_table_param = new (thd->mem_root) TMP_TABLE_PARAM;
tmp_table_param->init();
tmp_table_param->table_charset= cs;
tmp_table_param->field_count= field_count;