From 7bb4d371af5ec6b8c50b71d2a80c2866d8134d9a Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 2 Jul 2014 17:36:47 +0200 Subject: sd-bus: when an event loop terminates, explicitly close the bus This makes sure we actually release the bus and all the messages it references. --- src/libsystemd/sd-bus/sd-bus.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libsystemd/sd-bus/sd-bus.c b/src/libsystemd/sd-bus/sd-bus.c index d52afe843..eb267d430 100644 --- a/src/libsystemd/sd-bus/sd-bus.c +++ b/src/libsystemd/sd-bus/sd-bus.c @@ -2940,6 +2940,7 @@ static int quit_callback(sd_event_source *event, void *userdata) { assert(event); sd_bus_flush(bus); + sd_bus_close(bus); return 1; } -- cgit v1.2.3