1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

memory leak fixed

This commit is contained in:
bell@sanja.is.com.ua
2004-09-05 10:57:26 +03:00
parent 5d71817c70
commit ad6ad34b45

View File

@@ -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);
}