summaryrefslogtreecommitdiff
path: root/sql/sql_insert.cc
diff options
context:
space:
mode:
authorMichael Widenius <monty@askmonty.org>2013-06-20 14:49:25 +0300
committerMichael Widenius <monty@askmonty.org>2013-06-20 14:49:25 +0300
commitc46ce32cfbec0b3c21cb0e5b6bca91bd437130cf (patch)
tree46141a35f7f0b7edc9a1627697a9a301e132eb61 /sql/sql_insert.cc
parentf62f4bd563a96ddd78b78d563e4d4cf5ad27aae1 (diff)
downloadmariadb-git-c46ce32cfbec0b3c21cb0e5b6bca91bd437130cf.tar.gz
Fixed memory leaks. alias.test now runs clean with valgrind
Diffstat (limited to 'sql/sql_insert.cc')
-rw-r--r--sql/sql_insert.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/sql/sql_insert.cc b/sql/sql_insert.cc
index 21bf07cd653..cb506adb495 100644
--- a/sql/sql_insert.cc
+++ b/sql/sql_insert.cc
@@ -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