mirror of
https://github.com/reactos/reactos.git
synced 2024-09-30 14:37:45 +00:00
[0.4.7][DHCPSVC/IPHLPAPI] Fix 2 memory leaks CORE-14353
that are triggered repeatedly when just idling on the desktop and therefore will lure ros into inevitable BSOD after some days. fix cherry picked from 0.4.9-dev-52-g87d3fdf99e
and 2nd fix cherry picked from 0.4.9-dev-50-g182a31074f
This commit is contained in:
parent
3966ffa790
commit
5de8d5c559
|
@ -595,6 +595,10 @@ bind_lease(struct interface_info *ip)
|
|||
|
||||
/* Remember the medium. */
|
||||
ip->client->new->medium = ip->client->medium;
|
||||
|
||||
/* Replace the old active lease with the new one. */
|
||||
if (ip->client->active)
|
||||
free_client_lease(ip->client->active);
|
||||
ip->client->active = ip->client->new;
|
||||
ip->client->new = NULL;
|
||||
|
||||
|
|
|
@ -397,6 +397,7 @@ DWORD getNumRoutes(void)
|
|||
|
||||
TRACE("numRoutes: %d\n", (int)numRoutes);
|
||||
|
||||
tdiFreeThingSet( entitySet );
|
||||
closeTcpFile( tcpFile );
|
||||
|
||||
return numRoutes;
|
||||
|
|
Loading…
Reference in a new issue