mirror of
https://github.com/reactos/reactos.git
synced 2025-06-06 09:50:43 +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));
|
icp=HeapAlloc(GetProcessHeap(), 0, sizeof(*icp));
|
||||||
if (icp==NULL) {
|
if (icp==NULL) {
|
||||||
|
closesocket(sid);
|
||||||
SetLastError(IP_NO_RESOURCES);
|
SetLastError(IP_NO_RESOURCES);
|
||||||
return INVALID_HANDLE_VALUE;
|
return INVALID_HANDLE_VALUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue