[DHCPCSVC] Fix a memory leak in bind_lease introduced in r14645 (!). CORE-14353

This commit is contained in:
Thomas Faber 2018-02-22 11:28:55 +01:00
parent 22037684e4
commit 87d3fdf99e

View file

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