Skip to content

Commit

Permalink
resolved: unref event object after the sources
Browse files Browse the repository at this point in the history
It shouldn't matter because of all the refcounting, but it looks unclean.
  • Loading branch information
keszybz committed Mar 1, 2021
1 parent cd18afe commit f2ec080
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/resolve/resolved-manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit f2ec080

Please sign in to comment.