Marcus Meissner : ws2_32: Close the dest socket (Coverity).
Module: wine Branch: master Commit: 1a10d4d0cd27ddf4fca1a4dd910fe7498a7b0f00 URL: http://source.winehq.org/git/wine.git/?a=commit;h=1a10d4d0cd27ddf4fca1a4dd91... Author: Marcus Meissner <marcus(a)jet.franken.de> Date: Sun May 26 14:33:25 2013 +0200 ws2_32: Close the dest socket (Coverity). --- dlls/ws2_32/tests/sock.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/dlls/ws2_32/tests/sock.c b/dlls/ws2_32/tests/sock.c index 804c66b..4612116 100644 --- a/dlls/ws2_32/tests/sock.c +++ b/dlls/ws2_32/tests/sock.c @@ -4176,6 +4176,8 @@ static void test_WSARecv(void) todo_wine ok(!bret && (GetLastError() == ERROR_NETNAME_DELETED || broken(GetLastError() == ERROR_IO_INCOMPLETE) /* win9x */), "Did not get disconnect event: %d, error %d\n", bret, GetLastError()); ok(bytesReturned == 0, "Bytes received is %d\n", bytesReturned); + closesocket(dest); + dest = INVALID_SOCKET; src = WSASocketW(AF_INET, SOCK_STREAM, IPPROTO_TCP, NULL, 0, 0); ok(src != INVALID_SOCKET, "failed to create socket %d\n", WSAGetLastError());
participants (1)
-
Alexandre Julliard