ws2_32/tests: Add missing closesocket calls (Coverity)

Bruno Jesus 00cpxxx at gmail.com
Sat Jan 18 15:07:52 CST 2014


WSACleanup destroy the sockets anyway but Coverity is not aware of
that, so let's close the sockets manually.
-------------- next part --------------
diff --git a/dlls/ws2_32/tests/sock.c b/dlls/ws2_32/tests/sock.c
index 0abf732..8cee632 100644
--- a/dlls/ws2_32/tests/sock.c
+++ b/dlls/ws2_32/tests/sock.c
@@ -1061,6 +1061,9 @@ static void test_WithWSAStartup(void)
     ok(error == WSAENOTSOCK, "expected 10038, got %d\n", error);
     }
 
+    closesocket(src);
+    closesocket(dst);
+
     WSACleanup();
 }
 


More information about the wine-patches mailing list