diff options
author | Tom Gundersen <teg@jklm.no> | 2014-05-08 18:54:26 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-05-09 14:41:27 +0200 |
commit | 14b746f72132324e637c4e39694bd474f85e19f7 (patch) | |
tree | 7a99b9d37b073cb5d42bb1769c8639bae47fdc2b /src/network/networkd-manager.c | |
parent | 68a8723c8592c06b2c978f391cb47db266d9d6de (diff) |
networkd: introduce refcounting for Links and NetDevs
Diffstat (limited to 'src/network/networkd-manager.c')
-rw-r--r-- | src/network/networkd-manager.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/networkd-manager.c b/src/network/networkd-manager.c index 4b29553330..71c54254e3 100644 --- a/src/network/networkd-manager.c +++ b/src/network/networkd-manager.c @@ -151,14 +151,14 @@ void manager_free(Manager *m) { sd_event_unref(m->event); while ((link = hashmap_first(m->links))) - link_free(link); + link_unref(link); hashmap_free(m->links); while ((network = m->networks)) network_free(network); while ((netdev = hashmap_first(m->netdevs))) - netdev_free(netdev); + netdev_unref(netdev); hashmap_free(m->netdevs); sd_rtnl_unref(m->rtnl); |