sd-dhcp6-client: unref lease when freeing the client

This commit is contained in:
Thomas Hindoe Paaboel Andersen
2015-04-14 18:32:58 +02:00
parent 5a917c064b
commit 8283c71b71
+2
View File
@@ -1205,6 +1205,8 @@ sd_dhcp6_client *sd_dhcp6_client_unref(sd_dhcp6_client *client) {
client_reset(client);
sd_dhcp6_client_detach_event(client);
if (client->lease)
sd_dhcp6_lease_unref(client->lease);
free(client->req_opts);
free(client);