mirror of
https://github.com/reactos/reactos.git
synced 2025-02-21 16:04:57 +00:00
[DHCPCSVC] Fix a memory leak in bind_lease introduced in r14645 (!). CORE-14353
This commit is contained in:
parent
22037684e4
commit
87d3fdf99e
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue