From f2ec080ef2763b691f8346121ce92cdcb05b150c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Mon, 1 Mar 2021 22:49:06 +0100 Subject: [PATCH] resolved: unref event object after the sources It shouldn't matter because of all the refcounting, but it looks unclean. --- src/resolve/resolved-manager.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/resolve/resolved-manager.c b/src/resolve/resolved-manager.c index 34a9ce9711..0b14436709 100644 --- a/src/resolve/resolved-manager.c +++ b/src/resolve/resolved-manager.c @@ -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);