summaryrefslogtreecommitdiff
path: root/src/libsystemd-bus/bus-message.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-05-10 03:36:55 +0200
committerLennart Poettering <lennart@poettering.net>2013-05-10 03:38:11 +0200
commitfd8d62d94016d1981f65b9414af2218250fba070 (patch)
tree8f197c28855fb42d83876cdbbabe310236f1c50f /src/libsystemd-bus/bus-message.c
parentf8e013f8bf476e6d61fb2e218c85e23032a46302 (diff)
bus: catch up with latest kdbus
Diffstat (limited to 'src/libsystemd-bus/bus-message.c')
-rw-r--r--src/libsystemd-bus/bus-message.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libsystemd-bus/bus-message.c b/src/libsystemd-bus/bus-message.c
index fdc3ac6813..cc2b78a8c5 100644
--- a/src/libsystemd-bus/bus-message.c
+++ b/src/libsystemd-bus/bus-message.c
@@ -66,11 +66,17 @@ static void message_free(sd_bus_message *m) {
if (m->free_kdbus)
free(m->kdbus);
+ if (m->release_kdbus)
+ ioctl(m->bus->input_fd, KDBUS_CMD_MSG_RELEASE, m->kdbus);
+
if (m->free_fds) {
close_many(m->fds, m->n_fds);
free(m->fds);
}
+ if (m->bus)
+ sd_bus_unref(m->bus);
+
free(m->cmdline_array);
reset_containers(m);