isl_input.c: fix memory deallocation problem on missing operator
authorSven Verdoolaege <skimo@kotnet.org>
Mon, 1 Feb 2010 12:36:46 +0000 (13:36 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Wed, 3 Feb 2010 17:29:52 +0000 (18:29 +0100)
isl_input.c

index 40415e7..6c8f0c6 100644 (file)
@@ -404,6 +404,7 @@ static struct isl_basic_map *add_constraint(struct isl_stream *s,
        default:
                isl_stream_error(s, tok, "missing operator");
                isl_stream_push_token(s, tok);
+               tok = NULL;
                goto error;
        }
        aff2 = accept_affine(s, *v);