chiark / gitweb /
sd-bus: make add match method callback slot "floating"
authorLennart Poettering <lennart@poettering.net>
Wed, 30 May 2018 14:35:36 +0000 (16:35 +0200)
committerSven Eden <yamakuzure@gmx.net>
Fri, 24 Aug 2018 14:47:08 +0000 (16:47 +0200)
commitf0580b86936fbf46f0dd5cb2a91ad9ceff033a35
tree3cd31c6d8c2eedcb3e63eb28ab2dba4ecd4bc8e6
parentd853931416364fe06a88b16f4222a42bb47ccca7
sd-bus: make add match method callback slot "floating"

When we allocate an asynchronous match object we will allocate an
asynchronous bus call object to install the match server side.
Previously the call slot would be created as regular slot, i.e.
non-floating which meant installing the match even if it was itself
floating would result in a non-floating slot to be created internally,
which ultimately would mean the sd_bus object would be referenced by it,
and thus never be freed.

Let's fix that by making the match method callback floating in any case
as we have no interest in leaving the bus allocated beyond the match
slot.

Fixes: #8551
src/libelogind/sd-bus/sd-bus.c