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:
parent
0e8eedbb49
commit
a564ca2fd1
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user