From 1a10d4d0cd27ddf4fca1a4dd910fe7498a7b0f00 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Sun, 26 May 2013 14:33:25 +0200 Subject: [PATCH] ws2_32: Close the dest socket (Coverity). --- dlls/ws2_32/tests/sock.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/ws2_32/tests/sock.c b/dlls/ws2_32/tests/sock.c index 804c66bc9a7..4612116a078 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()); -- 2.11.4.GIT