]> git.ipfire.org Git - thirdparty/systemd.git/commit
shared/udev-util: fix sd_device leak in device_wait_for_initialization 16705/head
authorLuca Boccassi <luca.boccassi@microsoft.com>
Fri, 14 Aug 2020 10:05:42 +0000 (11:05 +0100)
committerLuca Boccassi <luca.boccassi@microsoft.com>
Fri, 14 Aug 2020 14:26:04 +0000 (15:26 +0100)
commitce5eef6530095961ad52e3b9974c8ad60579cacf
tree103ada582df39782add6d96783a8ccbf6977f023
parentefc3b12fdbe38f023b70839df5653ecae5ce44d3
shared/udev-util: fix sd_device leak in device_wait_for_initialization

If the caller doesn't pass a return pointer, or if sd_event_loop fails
after the device was found and referenced, it never gets dereferenced.
src/shared/udev-util.c