Commit ad6ad34b authored by bell@sanja.is.com.ua's avatar bell@sanja.is.com.ua

memory leak fixed

parent 5d71817c
......@@ -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;
}
DBUG_RETURN(res);
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment