summaryrefslogtreecommitdiff
path: root/src/network/networkd-manager.c
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2015-02-08 13:29:35 +0100
committerTom Gundersen <teg@jklm.no>2015-02-08 20:15:37 +0100
commitdbffab87f1504abc9f189dd253111693c99fbd9a (patch)
tree6d9d7f01ef17379dd1eb3584fa074c4bfddfac86 /src/network/networkd-manager.c
parent23cb977ac382931a0b5c1385cdbb7fe5c4c92b1a (diff)
networkd: add network_get_by_name
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 8dfe4377de..e2c8a23e0f 100644
--- a/src/network/networkd-manager.c
+++ b/src/network/networkd-manager.c
@@ -481,6 +481,8 @@ void manager_free(Manager *m) {
while ((network = m->networks))
network_free(network);
+ hashmap_free(m->networks_by_name);
+
while ((netdev = hashmap_first(m->netdevs)))
netdev_unref(netdev);
hashmap_free(m->netdevs);