]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
lex_try_pragma: free the buffers
authorWolfgang Bumiller <wry.git@bumiller.com>
Tue, 16 Apr 2013 12:14:15 +0000 (14:14 +0200)
committerWolfgang Bumiller <wry.git@bumiller.com>
Tue, 16 Apr 2013 12:14:15 +0000 (14:14 +0200)
lexer.c

diff --git a/lexer.c b/lexer.c
index 6f9def80dbf103511051a1f46663360a0e3c3a21..7f5736dc21f0c5dceb758336cc44a0e9293bbf62 100644 (file)
--- a/lexer.c
+++ b/lexer.c
@@ -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: