ws2_32/tests: Remove redundant NULL check before HeapFree().
Michael Stefaniuc
mstefani at redhat.de
Tue Apr 10 17:15:22 CDT 2007
Found by Smatch.
---
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)
--
1.5.0.6
--
Michael Stefaniuc Tel.: +49-711-96437-199
Sr. Network Engineer Fax.: +49-711-96437-111
Red Hat GmbH Email: mstefani at redhat.com
Hauptstaetterstr. 58 http://www.redhat.de/
D-70178 Stuttgart
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20070411/3cfc5856/attachment.pgp
More information about the wine-patches
mailing list