don't call ftepp_finish on a freed ftepp struct

This commit is contained in:
Wolfgang Bumiller 2013-04-17 11:36:45 +02:00
parent d7be99c9dd
commit 4d394494b6

4
main.c
View file

@ -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);