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:
parent
1f0e310952
commit
213e759ad5
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user