From bef53fae3cf3f55024ffbdfe5886a531d4178300 Mon Sep 17 00:00:00 2001 From: rahulp13 Date: Wed, 5 Aug 2020 23:56:39 +0530 Subject: resolved bug for undefined behavior of fclose --- src/outitf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/outitf.c') diff --git a/src/outitf.c b/src/outitf.c index 9b913ae..a4f76d3 100644 --- a/src/outitf.c +++ b/src/outitf.c @@ -58,7 +58,6 @@ Modified: 2000 AlansFixes, 2013/2015 patch by Krzysztof Blaszkowski /* 27.May.2020 - BM - Added the following #include */ #ifdef __linux__ - #include #include #include #include @@ -206,13 +205,14 @@ static void close_server() closesocket(sock); #endif } + + fclose(fptr); } #ifdef _WIN32 WSACleanup(); #endif - fclose(fptr); remove(ip_filename); } -- cgit