X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=lexer.c;h=7722f4f5795f02ee6c355aa6ea1b172c89948440;hb=4c4aa5534c34a35560ab1936bc84d37ee6e869e6;hp=6f9def80dbf103511051a1f46663360a0e3c3a21;hpb=c2b5a959615e1368b0ef99757b29fe7d715f734f;p=xonotic%2Fgmqcc.git diff --git a/lexer.c b/lexer.c index 6f9def8..7722f4f 100644 --- a/lexer.c +++ b/lexer.c @@ -58,7 +58,7 @@ static size_t num_keywords_fg = sizeof(keywords_fg) / sizeof(keywords_fg[0]); * Lexer code */ -char* *lex_filenames; +static char* *lex_filenames; void lexerror(lex_file *lex, const char *fmt, ...) { @@ -483,6 +483,9 @@ static bool lex_try_pragma(lex_file *lex) lex->line = line; while (ch != '\n' && ch != EOF) ch = lex_getch(lex); + vec_free(command); + vec_free(param); + vec_free(pragma); return true; unroll: @@ -1232,7 +1235,7 @@ int lex_do(lex_file *lex) /* case '+': case '-': - */ + */ case '*': case '/': case '<':