mirror of
https://github.com/MariaDB/server.git
synced 2026-04-26 10:15:29 +02:00
memory leak fixed
This commit is contained in:
parent
9a63c8e0e4
commit
1230daf8f2
1 changed files with 5 additions and 3 deletions
|
|
@ -222,10 +222,12 @@ static int mysql_derived(THD *thd, LEX *lex, SELECT_LEX_UNIT *unit,
|
|||
table->next= thd->derived_tables;
|
||||
thd->derived_tables= table;
|
||||
}
|
||||
}
|
||||
else
|
||||
free_tmp_table(thd, table);
|
||||
|
||||
exit:
|
||||
delete derived_result;
|
||||
lex->current_select= save_current_select;
|
||||
}
|
||||
delete derived_result;
|
||||
lex->current_select= save_current_select;
|
||||
DBUG_RETURN(res);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue