sd-bus: destroy AddMatch() reply slot in failure case too
authorLennart Poettering <lennart@poettering.net>
Fri, 29 Mar 2019 14:42:38 +0000 (15:42 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 11 Jul 2019 10:18:51 +0000 (12:18 +0200)
commit3cf8dd5359ad01eb5c291d2f12c33e84fb2c70b9
tree1ff473033e3e78a3ebdea9a19999c969d4999c4c
parentf1617a3b61b4c6f9d4a2a6581d3794c079acc02a
sd-bus: destroy AddMatch() reply slot in failure case too

If AddMatch() doesn't work, let's destroy the slot for it too as soon as
we received the failure for it.

This way the mere existance of the slot tells us whether the AddMatch()
method call is still pending or is complete.
src/libsystemd/sd-bus/sd-bus.c