error of parsing can occur in any SELECT, so all SELECTs have to be checked

This commit is contained in:
unknown 2005-01-11 11:53:39 +02:00
parent 1ef48556bd
commit 489bd55741

View file

@ -163,7 +163,8 @@ void lex_start(THD *thd, uchar *buf,uint length)
void lex_end(LEX *lex)
{
lex->select_lex.expr_list.delete_elements(); // If error when parsing sql-varargs
for(SELECT_LEX *sl= lex->all_selects_list; sl; sl= sl->next_select_in_list())
sl->expr_list.delete_elements(); // If error when parsing sql-varargs
x_free(lex->yacc_yyss);
x_free(lex->yacc_yyvs);
}