diff options
author | rahulp13 | 2020-08-05 23:56:39 +0530 |
---|---|---|
committer | rahulp13 | 2020-08-05 23:56:39 +0530 |
commit | bef53fae3cf3f55024ffbdfe5886a531d4178300 (patch) | |
tree | b7c3e12771d071c5a2b56b81778f231be7ede39d | |
parent | 30678928c1746176de9923025b012c370fd28e0a (diff) | |
download | nghdl-bef53fae3cf3f55024ffbdfe5886a531d4178300.tar.gz nghdl-bef53fae3cf3f55024ffbdfe5886a531d4178300.tar.bz2 nghdl-bef53fae3cf3f55024ffbdfe5886a531d4178300.zip |
resolved bug for undefined behavior of fclose
-rw-r--r-- | src/outitf.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 <stdio.h> #include <sys/socket.h> #include <arpa/inet.h> #include <unistd.h> @@ -206,13 +205,14 @@ static void close_server() closesocket(sock); #endif } + + fclose(fptr); } #ifdef _WIN32 WSACleanup(); #endif - fclose(fptr); remove(ip_filename); } |