Commit 6f8ac7cf authored by André Hentschel's avatar André Hentschel Committed by Alexandre Julliard

iphlpapi: Close socket on failed HeapAlloc (coverity).

parent f08854ac
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment