]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - main.c
Fix more bugs (mostly possible NULL pointer dereferences)
[xonotic/gmqcc.git] / main.c
diff --git a/main.c b/main.c
index bcd91599e730bcc063c7b0f7f734325fef403057..ab9520ade17bfbb42119d05c398aacca87e8bdf0 100644 (file)
--- a/main.c
+++ b/main.c
@@ -791,7 +791,7 @@ cleanup:
     vec_free(ppems);
 
     if (!OPTS_OPTION_BOOL(OPTION_PP_ONLY))
-        parser_cleanup(parser);
+        if(parser) parser_cleanup(parser);
     if (opts_output_free)
         mem_d(OPTS_OPTION_STR(OPTION_OUTPUT));
     if (operators_free)