1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-13 17:18:18 +03:00

resolved: fix minor memory leak when shuttin down

We need to free the rtnl watch too.
This commit is contained in:
Lennart Poettering 2015-11-23 21:24:10 +01:00
parent 0e8eedbb49
commit a564ca2fd1

View File

@ -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);