From aa66c6b7b151430669324bd6379b24f5df5acaad Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Sun, 21 Feb 2010 22:41:06 +0100 Subject: [PATCH] isl_input.c: accept_affine: fix memory leak on error path --- isl_input.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/isl_input.c b/isl_input.c index c6ca654f..12838bf7 100644 --- a/isl_input.c +++ b/isl_input.c @@ -170,6 +170,7 @@ static struct isl_vec *accept_affine(struct isl_stream *s, struct vars *v) goto error; if (pos >= n) { isl_stream_error(s, tok, "unknown identifier"); + isl_token_free(tok); goto error; } if (sign > 0) @@ -191,6 +192,7 @@ static struct isl_vec *accept_affine(struct isl_stream *s, struct vars *v) if (pos >= n) { isl_stream_error(s, tok2, "unknown identifier"); + isl_token_free(tok); isl_token_free(tok2); goto error; } -- 2.11.4.GIT