From c8aba692af267f25ce5f43e0747e6c67fa7ab216 Mon Sep 17 00:00:00 2001 From: Paul Vriens Date: Tue, 9 Sep 2008 11:45:40 +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 5883078a978..4b8c57f652b 100644 --- a/dlls/ws2_32/tests/sock.c +++ b/dlls/ws2_32/tests/sock.c @@ -2187,8 +2187,7 @@ static void test_write_events(void) } end: - if (buffer != NULL) - HeapFree(GetProcessHeap(), 0, buffer); + HeapFree(GetProcessHeap(), 0, buffer); if (src != INVALID_SOCKET) closesocket(src); if (dst != INVALID_SOCKET)