From 6f8ac7cf1baa700dc4a83735925040f89d66f03d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Hentschel?= Date: Thu, 25 Oct 2012 21:29:06 +0200 Subject: [PATCH] iphlpapi: Close socket on failed HeapAlloc (coverity). --- dlls/iphlpapi/icmp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/iphlpapi/icmp.c b/dlls/iphlpapi/icmp.c index fb87fe2900..6d26bb42e5 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; }