iphlpapi: Close socket on failed HeapAlloc (coverity).

This commit is contained in:
André Hentschel 2012-10-25 21:29:06 +02:00 committed by Alexandre Julliard
parent f08854ac3d
commit 6f8ac7cf1b

View File

@ -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;
}