- 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:
Thomas Faber 2014-05-12 06:44:01 +00:00
parent dbe30dfb59
commit 233ba85cfe

View file

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