André Hentschel : iphlpapi: Close socket on failed HeapAlloc (coverity).
Module: wine Branch: master Commit: 6f8ac7cf1baa700dc4a83735925040f89d66f03d URL: http://source.winehq.org/git/wine.git/?a=commit;h=6f8ac7cf1baa700dc4a8373592... Author: André Hentschel <nerv(a)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; }
participants (1)
-
Alexandre Julliard