sd-bus: unref slot->match_callback.install_slot when slot is disconnected
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 8 Jul 2018 14:09:18 +0000 (23:09 +0900)
committerLennart Poettering <lennart@poettering.net>
Fri, 13 Jul 2018 18:07:43 +0000 (20:07 +0200)
commit20d4ee2cbc21e0c4d2dd6c01d5a18a4cf0d98222
tree2f57051fe4c17db03a30623d880a46f62ffaf004
parent8840c47c0def41c940c6e7cfc1af1613a6adf6dd
sd-bus: unref slot->match_callback.install_slot when slot is disconnected

When a slot is disconnected, then slot->match_callback.install_slot
is also disconnected. So, bus_slot_disconnect() removes the install_slot
from the list of slots in bus, although it is a floating object.
This makes install_slot unreffed from bus when it is disconnected.

Fixes #9505 and #9510.
src/libsystemd/sd-bus/bus-slot.c