diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-11-23 21:24:10 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-11-23 21:31:29 +0100 |
commit | a564ca2fd113b2876e677beab60b38d50591e246 (patch) | |
tree | 77d9900b9f7446304b697e26e66fb5dadf2bd365 /src | |
parent | 0e8eedbb490b8928d4fa4e33f565a3cda5013018 (diff) |
resolved: fix minor memory leak when shuttin down
We need to free the rtnl watch too.
Diffstat (limited to 'src')
-rw-r--r-- | src/resolve/resolved-manager.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/resolve/resolved-manager.c b/src/resolve/resolved-manager.c index a588538b52..a4ca7c89d3 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); |