summaryrefslogtreecommitdiffstats
path: root/src/network/networkd-manager.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2021-02-05 04:01:07 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2021-02-19 14:42:39 +0100
commit69e244e321e4c51ebd266555a5ec286b117ad5c6 (patch)
tree1ee17c1176450d5e14f04d7196b043f90429b1da /src/network/networkd-manager.c
parentMerge pull request #18646 from yuwata/network-ip-masquerade-follow-ups (diff)
downloadsystemd-69e244e321e4c51ebd266555a5ec286b117ad5c6.tar.xz
systemd-69e244e321e4c51ebd266555a5ec286b117ad5c6.zip
network: also manage nexthops by ID
It will be used in later commits.
Diffstat (limited to 'src/network/networkd-manager.c')
-rw-r--r--src/network/networkd-manager.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/network/networkd-manager.c b/src/network/networkd-manager.c
index a6f343a1f6..8f8aff602a 100644
--- a/src/network/networkd-manager.c
+++ b/src/network/networkd-manager.c
@@ -894,6 +894,8 @@ Manager* manager_free(Manager *m) {
m->routes = set_free(m->routes);
m->routes_foreign = set_free(m->routes_foreign);
+ m->nexthops_by_id = hashmap_free(m->nexthops_by_id);
+
sd_event_source_unref(m->speed_meter_event_source);
sd_event_unref(m->event);