summaryrefslogtreecommitdiff
path: root/sql/sql_derived.cc
diff options
context:
space:
mode:
authorunknown <bell@sanja.is.com.ua>2004-02-10 02:18:22 +0200
committerunknown <bell@sanja.is.com.ua>2004-02-10 02:18:22 +0200
commitecb11989ad22af2cdd2359dbb96705af240f1c84 (patch)
tree21cf400810b87c400f5ed2f7d7390f4306d5af14 /sql/sql_derived.cc
parentd4767576f8b1f3ddf0ae6785b0fa785f06c2e536 (diff)
downloadmariadb-git-ecb11989ad22af2cdd2359dbb96705af240f1c84.tar.gz
after merge & valgrind test fixes (BUG#2120)
sql/sql_derived.cc: memory leack fixed sql/sql_lex.cc: flag to avoid double cleaning sql/sql_lex.h: flag to avoid double cleaning sql/sql_select.cc: right way to cleanup JOIN_TAB sql/sql_select.h: right way to cleanup JOIN_TAB sql/sql_union.cc: flag to avoid double cleaning
Diffstat (limited to 'sql/sql_derived.cc')
-rw-r--r--sql/sql_derived.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/sql_derived.cc b/sql/sql_derived.cc
index 6e70fdd46d5..0e04316a2e7 100644
--- a/sql/sql_derived.cc
+++ b/sql/sql_derived.cc
@@ -204,6 +204,8 @@ static int mysql_derived(THD *thd, LEX *lex, SELECT_LEX_UNIT *unit,
table->file->info(HA_STATUS_VARIABLE);
}
+ if (!lex->describe)
+ unit->cleanup();
if (res)
free_tmp_table(thd, table);
else