diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-05-04 07:52:38 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-05-07 16:55:19 +0200 |
commit | 35ac3b76641926f60c7f0602fc24eaeae24e4fc8 (patch) | |
tree | 6920b7195869704a2988c60a48f5d384cc3729d0 /src/network/networkd-manager.c | |
parent | Italian translations: minor updates (#12494) (diff) | |
download | systemd-35ac3b76641926f60c7f0602fc24eaeae24e4fc8.tar.xz systemd-35ac3b76641926f60c7f0602fc24eaeae24e4fc8.zip |
network: introduce reference counter for Network object
Diffstat (limited to 'src/network/networkd-manager.c')
-rw-r--r-- | src/network/networkd-manager.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/networkd-manager.c b/src/network/networkd-manager.c index 8c461a89e0..7d55142c41 100644 --- a/src/network/networkd-manager.c +++ b/src/network/networkd-manager.c @@ -1458,7 +1458,7 @@ void manager_free(Manager *m) { m->duids_requesting_uuid = set_free(m->duids_requesting_uuid); while ((network = m->networks)) - network_free(network); + network_unref(network); hashmap_free(m->networks_by_name); m->netdevs = hashmap_free_with_destructor(m->netdevs, netdev_unref); |