sd-bus: don't leak kdbus notifications
authorDavid Herrmann <dh.herrmann@gmail.com>
Thu, 2 Jul 2015 10:14:27 +0000 (12:14 +0200)
committerDavid Herrmann <dh.herrmann@gmail.com>
Thu, 2 Jul 2015 10:24:05 +0000 (12:24 +0200)
commit0c9cc10dcca6cc260b293c2732e7a4833280272e
tree3913b81d39af5fd75ac667efa4d9093e70200a26
parent138879ccad87148cc5d805471183789a6ad688c6
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/libsystemd/sd-bus/bus-kernel.c