From 57d200235127b6cdf58a272cecf04d8c2cf2fac5 Mon Sep 17 00:00:00 2001 From: Michael Stefaniuc Date: Wed, 11 Apr 2007 00:15:22 +0200 Subject: [PATCH] ws2_32/tests: Remove redundant NULL check before HeapFree(). --- dlls/ws2_32/tests/sock.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dlls/ws2_32/tests/sock.c b/dlls/ws2_32/tests/sock.c index 6ae9180d164..17268b790b6 100644 --- a/dlls/ws2_32/tests/sock.c +++ b/dlls/ws2_32/tests/sock.c @@ -1725,8 +1725,7 @@ end: closesocket(dst); if (hThread != NULL) CloseHandle(hThread); - if (buffer != NULL) - HeapFree(GetProcessHeap(), 0, buffer); + HeapFree(GetProcessHeap(), 0, buffer); } static void test_write_events(void)