]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-bus: make add match method callback slot "floating" 9132/head
authorLennart Poettering <lennart@poettering.net>
Wed, 30 May 2018 14:35:36 +0000 (16:35 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 30 May 2018 15:34:34 +0000 (17:34 +0200)
commitfc2d4c89b87a224a9dd06756db9b964bb5170af0
tree4261255d3f7be8d9cc136b2a0d8817f2523d5892
parent7ae497b936998af6b16f746bd9695d16488b50cc
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/libsystemd/sd-bus/sd-bus.c