=?UTF-8?Q?Andr=C3=A9=20Hentschel=20?=: iphlpapi: Close socket on failed HeapAlloc (coverity).
Alexandre Julliard
julliard at winehq.org
Fri Oct 26 11:36:20 CDT 2012
Module: wine
Branch: master
Commit: 6f8ac7cf1baa700dc4a83735925040f89d66f03d
URL: http://source.winehq.org/git/wine.git/?a=commit;h=6f8ac7cf1baa700dc4a83735925040f89d66f03d
Author: André Hentschel <nerv at dawncrow.de>
Date: Thu Oct 25 21:29:06 2012 +0200
iphlpapi: Close socket on failed HeapAlloc (coverity).
---
dlls/iphlpapi/icmp.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dlls/iphlpapi/icmp.c b/dlls/iphlpapi/icmp.c
index fb87fe2..6d26bb4 100644
--- a/dlls/iphlpapi/icmp.c
+++ b/dlls/iphlpapi/icmp.c
@@ -168,6 +168,7 @@ HANDLE WINAPI IcmpCreateFile(VOID)
icp=HeapAlloc(GetProcessHeap(), 0, sizeof(*icp));
if (icp==NULL) {
+ close(sid);
SetLastError(IP_NO_RESOURCES);
return INVALID_HANDLE_VALUE;
}
More information about the wine-cvs
mailing list