From: Lennart Poettering Date: Mon, 23 Nov 2015 20:24:10 +0000 (+0100) Subject: resolved: fix minor memory leak when shuttin down X-Git-Tag: v231~923^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a564ca2fd113b2876e677beab60b38d50591e246;p=platform%2Fupstream%2Fsystemd.git resolved: fix minor memory leak when shuttin down We need to free the rtnl watch too. --- 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);