From a79a2a7fabc181a4e0517d04d8cf9cd9300b4741 Mon Sep 17 00:00:00 2001 From: David Carlier Date: Sun, 26 Jan 2020 18:52:14 +0000 Subject: [PATCH] mcpp dependency possible leak fix proposal --- lib/mcpp/main.c | 2 ++ 1 file changed, 2 insertions(+) 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);