mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-24 21:34:08 +03:00
resolved: unref event object after the sources
It shouldn't matter because of all the refcounting, but it looks unclean.
This commit is contained in:
parent
cd18afec16
commit
f2ec080ef2
@ -789,8 +789,6 @@ Manager *manager_free(Manager *m) {
|
||||
sd_event_source_unref(m->sigusr2_event_source);
|
||||
sd_event_source_unref(m->sigrtmin1_event_source);
|
||||
|
||||
sd_event_unref(m->event);
|
||||
|
||||
dns_resource_key_unref(m->llmnr_host_ipv4_key);
|
||||
dns_resource_key_unref(m->llmnr_host_ipv6_key);
|
||||
dns_resource_key_unref(m->mdns_host_ipv4_key);
|
||||
@ -799,6 +797,8 @@ Manager *manager_free(Manager *m) {
|
||||
sd_event_source_unref(m->hostname_event_source);
|
||||
safe_close(m->hostname_fd);
|
||||
|
||||
sd_event_unref(m->event);
|
||||
|
||||
free(m->full_hostname);
|
||||
free(m->llmnr_hostname);
|
||||
free(m->mdns_hostname);
|
||||
|
Loading…
Reference in New Issue
Block a user