From 4d394494b6fcbf144975acd3f1d311b63aba598f Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Wed, 17 Apr 2013 11:36:45 +0200 Subject: [PATCH] don't call ftepp_finish on a freed ftepp struct --- main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.c b/main.c index d89ed27..0a22b1b 100644 --- a/main.c +++ b/main.c @@ -765,6 +765,7 @@ srcdone: } ftepp_finish(ftepp); + ftepp = NULL; if (!OPTS_OPTION_BOOL(OPTION_PP_ONLY)) { if (!parser_finish(parser, OPTS_OPTION_STR(OPTION_OUTPUT))) { retval = 1; @@ -786,7 +787,8 @@ srcdone: cleanup: util_debug("COM", "cleaning ...\n"); - ftepp_finish(ftepp); + if (ftepp) + ftepp_finish(ftepp); con_close(); vec_free(items); vec_free(ppems); -- 2.39.2