mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
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
This commit is contained in:
@@ -442,6 +442,12 @@ int st_select_lex_unit::cleanup()
|
||||
int error= 0;
|
||||
DBUG_ENTER("st_select_lex_unit::cleanup");
|
||||
|
||||
if (cleaned)
|
||||
{
|
||||
DBUG_RETURN(0);
|
||||
}
|
||||
cleaned= 0;
|
||||
|
||||
if (union_result)
|
||||
{
|
||||
delete union_result;
|
||||
|
||||
Reference in New Issue
Block a user