[systemd-commits] src/libsystemd

Lennart Poettering lennart at kemper.freedesktop.org
Wed Feb 19 20:47:51 CET 2014


 src/libsystemd/sd-bus/sd-bus.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 23abf5d5820ed9f24e8fe92fad32a207fe75398c
Author: Lennart Poettering <lennart at poettering.net>
Date:   Wed Feb 19 20:35:33 2014 +0100

    bus: fix unreffing logic

diff --git a/src/libsystemd/sd-bus/sd-bus.c b/src/libsystemd/sd-bus/sd-bus.c
index 1187690..e494cd2 100644
--- a/src/libsystemd/sd-bus/sd-bus.c
+++ b/src/libsystemd/sd-bus/sd-bus.c
@@ -1365,7 +1365,8 @@ _public_ sd_bus *sd_bus_unref(sd_bus *bus) {
                  * the messages and thus implicitly also kill our own
                  * last references */
 
-                bus_reset_queues(bus);
+                if (q)
+                        bus_reset_queues(bus);
         }
 
         i = REFCNT_DEC(bus->n_ref);



More information about the systemd-commits mailing list