manager: close hostname fd *after* removing it epoll

Otherwise the epoll removal will fail and result in a warning.
This commit is contained in:
Lennart Poettering 2015-08-26 09:42:06 +02:00
parent 4d506d6bb7
commit d9fcf2ba1a
1 changed files with 1 additions and 1 deletions

View File

@ -561,8 +561,8 @@ Manager *manager_free(Manager *m) {
dns_resource_key_unref(m->llmnr_host_ipv4_key);
dns_resource_key_unref(m->llmnr_host_ipv6_key);
safe_close(m->hostname_fd);
sd_event_source_unref(m->hostname_event_source);
safe_close(m->hostname_fd);
free(m->llmnr_hostname);
free(m->mdns_hostname);