diff options
author | Tom Gundersen <teg@jklm.no> | 2015-02-08 13:29:35 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2015-02-08 20:15:37 +0100 |
commit | dbffab87f1504abc9f189dd253111693c99fbd9a (patch) | |
tree | 6d9d7f01ef17379dd1eb3584fa074c4bfddfac86 /src/network/networkd-manager.c | |
parent | 23cb977ac382931a0b5c1385cdbb7fe5c4c92b1a (diff) |
networkd: add network_get_by_name
Diffstat (limited to 'src/network/networkd-manager.c')
-rw-r--r-- | src/network/networkd-manager.c | 2 |
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); |