diff --git a/lib/mcpp/main.c b/lib/mcpp/main.c index f9ede3257..f7cc61449 100644 --- a/lib/mcpp/main.c +++ b/lib/mcpp/main.c @@ -431,6 +431,8 @@ fatal_error_exit: clear_filelist(); clear_symtable(); #endif + if (stdin_name != in_file) + free(in_file); if (fp_in && fp_in != stdin) fclose( fp_in);