mirror of
https://github.com/reactos/wine.git
synced 2024-11-28 14:10:32 +00:00
iphlapi: Fix some leaks (coverity).
This commit is contained in:
parent
32f636f6d1
commit
82c97d954d
@ -741,6 +741,8 @@ DWORD getIPAddrTable(PMIB_IPADDRTABLE *ppIpAddrTable, HANDLE heap, DWORD flags)
|
||||
ifp->ifa_addr);
|
||||
i++;
|
||||
}
|
||||
if (ret)
|
||||
HeapFree(GetProcessHeap(), 0, *ppIpAddrTable);
|
||||
}
|
||||
else
|
||||
ret = ERROR_OUTOFMEMORY;
|
||||
@ -928,6 +930,8 @@ DWORD getIPAddrTable(PMIB_IPADDRTABLE *ppIpAddrTable, HANDLE heap, DWORD flags)
|
||||
&ifr->ifr_addr);
|
||||
i++;
|
||||
}
|
||||
if (ret)
|
||||
HeapFree(GetProcessHeap(), 0, *ppIpAddrTable);
|
||||
}
|
||||
else
|
||||
ret = ERROR_OUTOFMEMORY;
|
||||
|
@ -784,6 +784,7 @@ static ULONG adapterAddressesFromIndex(ULONG family, ULONG flags, IF_INDEX index
|
||||
}
|
||||
if (ret)
|
||||
{
|
||||
HeapFree(GetProcessHeap(), 0, v4addrs);
|
||||
HeapFree(GetProcessHeap(), 0, routeTable);
|
||||
return ret;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user