chiark / gitweb /
sd-bus: don't leak kdbus notifications
authorDavid Herrmann <dh.herrmann@gmail.com>
Thu, 2 Jul 2015 10:14:27 +0000 (12:14 +0200)
committerSven Eden <yamakuzure@gmx.net>
Tue, 14 Mar 2017 09:05:54 +0000 (10:05 +0100)
commitd77c6e258b8768f1ec7f85b2f7ec802428a56ae4
tree09c93e0b8096438f7887b9977c51cd70777488c6
parentf03a8ebfc1c4acf74491ebd8ef5555a7f10f92c2
sd-bus: don't leak kdbus notifications

When we get notifications from the kernel, we always turn them into
synthetic dbus1 messages. This means, we do *not* consume the kdbus
message, and as such have to free the offset.

Right now, the translation-helpers told the caller that they consumed the
message, which is wrong. Fix this by explicitly releasing all kernel
messages that are translated.
src/libelogind/sd-bus/bus-kernel.c