[PATCH] secur32/tests: Fix resource leak.
Signed-off-by: Andrey Gusev <andrey.goosev(a)gmail.com> --- dlls/secur32/tests/schannel.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/secur32/tests/schannel.c b/dlls/secur32/tests/schannel.c index 21ebb6283f..7137b9cf9f 100644 --- a/dlls/secur32/tests/schannel.c +++ b/dlls/secur32/tests/schannel.c @@ -722,6 +722,7 @@ static void test_communication(void) if (sock == SOCKET_ERROR) { skip("Can't create socket\n"); + closesocket(sock); return; } -- 2.13.6
On 01/05/2018 03:36 PM, Andrey Gusev wrote:
Signed-off-by: Andrey Gusev <andrey.goosev(a)gmail.com> --- dlls/secur32/tests/schannel.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/dlls/secur32/tests/schannel.c b/dlls/secur32/tests/schannel.c index 21ebb6283f..7137b9cf9f 100644 --- a/dlls/secur32/tests/schannel.c +++ b/dlls/secur32/tests/schannel.c @@ -722,6 +722,7 @@ static void test_communication(void) if (sock == SOCKET_ERROR) { skip("Can't create socket\n"); + closesocket(sock); return; }
This doesn't do anything.
participants (2)
-
Andrey Gusev -
Nikolay Sivov