]> git.ipfire.org Git - thirdparty/systemd.git/commit
udev,sysupdated: fix pidfd leak
authorMike Yuan <me@yhndnzj.com>
Thu, 1 Jan 2026 19:10:45 +0000 (20:10 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 1 Jan 2026 22:59:15 +0000 (07:59 +0900)
commitca6b65991ce38d73eb785eb187da8adcec8ad1d1
tree153e479221ba3cf96c4d54042032517a8ab909ed
parent47d22e41e4a679c3e65d6cc09f21f294e37826b1
udev,sysupdated: fix pidfd leak

Follow-up for 179dcf924f7d0ac9398f54baeb39b47abd23aeaf

After the mentioned commit, event_add_child_pidref() duplicates
the pidfd internally, hence the original pidfd would be leaked
with TAKE_PIDREF.
src/sysupdate/sysupdated.c
src/udev/udev-watch.c