1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-07 00:04:31 +03:00

Fixed memory leaks. alias.test now runs clean with valgrind

This commit is contained in:
Michael Widenius
2013-06-20 14:49:25 +03:00
parent f62f4bd563
commit c46ce32cfb
11 changed files with 13 additions and 12 deletions

View File

@@ -3914,8 +3914,7 @@ static TABLE *create_table_from_items(THD *thd, HA_CREATE_INFO *create_info,
}
else
{
Open_table_context ot_ctx(thd, MYSQL_OPEN_TEMPORARY_ONLY);
if (open_table(thd, create_table, thd->mem_root, &ot_ctx))
if (open_temporary_table(thd, create_table))
{
/*
This shouldn't happen as creation of temporary table should make