diff --git a/parser.c b/parser.c index c768555..4f5b7be 100644 --- a/parser.c +++ b/parser.c @@ -2108,6 +2108,10 @@ nextvar: if (parser->tok == ',') { /* another var */ + if (!parser_next(parser)) { + ast_delete(typevar); + return false; + } continue; }