mirror of
https://github.com/reactos/wine.git
synced 2024-11-28 22:20:26 +00:00
iphlpapi: Close socket on failed HeapAlloc (coverity).
This commit is contained in:
parent
f08854ac3d
commit
6f8ac7cf1b
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user