This should have been part of ab6eaa2 (isl_stream_next_token: keep track
of string representation of keywords, Thu Dec 23 15:32:27 2010 +0100).
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
return;
if (tok->type == ISL_TOKEN_VALUE)
isl_int_clear(tok->u.v);
- else if (tok->type == ISL_TOKEN_IDENT || tok->type == ISL_TOKEN_STRING)
+ else if (tok->type == ISL_TOKEN_IDENT ||
+ tok->type == ISL_TOKEN_STRING ||
+ tok->is_keyword)
free(tok->u.s);
free(tok);
}