Plug an extension leak on parse error in parse_for().
authorChristoph Mallon <christoph.mallon@gmx.de>
Thu, 26 Apr 2012 10:18:44 +0000 (12:18 +0200)
committerChristoph Mallon <christoph.mallon@gmx.de>
Thu, 26 Apr 2012 13:17:37 +0000 (15:17 +0200)
parser.c

index f128dd5..59417dd 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -9527,7 +9527,8 @@ static statement_t *parse_for(void)
                        warningf(WARN_UNUSED_VALUE, &init->base.source_position, "initialisation of 'for'-statement has no effect");
                }
                rem_anchor_token(';');
-               expect(';', end_error2);
+               expect(';', end_error3);
+end_error3:;
        }
 
        POP_EXTENSION();