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; + } }