From a564ca2fd113b2876e677beab60b38d50591e246 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 23 Nov 2015 21:24:10 +0100 Subject: [PATCH] resolved: fix minor memory leak when shuttin down We need to free the rtnl watch too. --- src/resolve/resolved-manager.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/resolve/resolved-manager.c b/src/resolve/resolved-manager.c index a588538..a4ca7c8 100644 --- a/src/resolve/resolved-manager.c +++ b/src/resolve/resolved-manager.c @@ -553,6 +553,9 @@ Manager *manager_free(Manager *m) { sd_event_source_unref(m->network_event_source); sd_network_monitor_unref(m->network_monitor); + sd_netlink_unref(m->rtnl); + sd_event_source_unref(m->rtnl_event_source); + manager_llmnr_stop(m); sd_bus_slot_unref(m->prepare_for_sleep_slot); -- 2.7.4