1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-22 13:33:56 +03:00

dhcp6: fix memleak about sd_event

This commit is contained in:
Yu Watanabe 2018-09-29 22:37:21 +09:00 committed by Zbigniew Jędrzejewski-Szmek
parent 1f0e310952
commit 213e759ad5

View File

@ -412,6 +412,9 @@ static int client_reset(sd_dhcp6_client *client) {
client->timeout_resend_expire =
sd_event_source_unref(client->timeout_resend_expire);
client->timeout_t1 = sd_event_source_unref(client->timeout_t1);
client->timeout_t2 = sd_event_source_unref(client->timeout_t2);
client->state = DHCP6_STATE_STOPPED;
return 0;