Michael Stefaniuc : ws2_32/tests: Remove redundant NULL check before HeapFree().

Alexandre Julliard julliard at wine.codeweavers.com
Wed Apr 11 06:42:08 CDT 2007


Module: wine
Branch: master
Commit: 57d200235127b6cdf58a272cecf04d8c2cf2fac5
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=57d200235127b6cdf58a272cecf04d8c2cf2fac5

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Wed Apr 11 00:15:22 2007 +0200

ws2_32/tests: Remove redundant NULL check before HeapFree().

---

 dlls/ws2_32/tests/sock.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/dlls/ws2_32/tests/sock.c b/dlls/ws2_32/tests/sock.c
index 6ae9180..17268b7 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)




More information about the wine-cvs mailing list