From 2d5a8dc49c76f7550c6f81de5f71eaf6f33d44f3 Mon Sep 17 00:00:00 2001 From: OBattler Date: Tue, 14 Jan 2020 22:23:56 +0100 Subject: [PATCH] Fixed a resource leak in win/win.c. --- src/win/win.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/win/win.c b/src/win/win.c index 2f421412b..5175d65e3 100644 --- a/src/win/win.c +++ b/src/win/win.c @@ -267,6 +267,11 @@ CreateConsole(int init) } } } + + if (fp != NULL) { + fclose(fp); + fp = NULL; + } }