mirror of
https://github.com/reactos/reactos.git
synced 2025-05-30 14:39:46 +00:00
[ICMP]
- Fix socket leak. Spotted by Samuel & cppcheck Note: Wine has this in iphlpapi these days. Should probably sync. CORE-8208 #resolve svn path=/trunk/; revision=63250
This commit is contained in:
parent
dbe30dfb59
commit
233ba85cfe
1 changed files with 1 additions and 0 deletions
|
@ -179,6 +179,7 @@ HANDLE WINAPI IcmpCreateFile(VOID)
|
|||
|
||||
icp=HeapAlloc(GetProcessHeap(), 0, sizeof(*icp));
|
||||
if (icp==NULL) {
|
||||
closesocket(sid);
|
||||
SetLastError(IP_NO_RESOURCES);
|
||||
return INVALID_HANDLE_VALUE;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue