]> git.ipfire.org Git - thirdparty/systemd.git/commit
network: fix Link reference counter issue 19631/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 14 May 2021 06:58:15 +0000 (15:58 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 18 May 2021 11:40:56 +0000 (20:40 +0900)
commitcc2d7efc5ca09a7de4bec55e80476986839a655c
tree8076e281d3d70e6a219fe722f1020f7da24a9e0e
parent56001f023305ea99329e27141d6e6067596491a9
network: fix Link reference counter issue

Previously, when link_new() fails, `link_unref()` was called, so,
`Manager::links` may become dirty.
This introduces `link_drop_or_unref()` and it will be called on
failure.
src/network/networkd-link.c