[systemd-commits] src/libsystemd

Zbigniew Jędrzejewski-Szmek zbyszek at kemper.freedesktop.org
Wed Jan 15 22:20:29 PST 2014


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

New commits:
commit c4e6e24255de376965c7f8ae53e16594c2581200
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date:   Thu Jan 16 01:15:17 2014 -0500

    bus: fix issue with reference counting
    
    b7fc42e03 introduced a regression.

diff --git a/src/libsystemd/sd-bus.c b/src/libsystemd/sd-bus.c
index b76221e..95d80db 100644
--- a/src/libsystemd/sd-bus.c
+++ b/src/libsystemd/sd-bus.c
@@ -1425,8 +1425,8 @@ static int dispatch_wqueue(sd_bus *bus) {
                          * it got full, then all bets are off
                          * anyway. */
 
-                        sd_bus_message_unref(bus->wqueue[0]);
                         bus->wqueue_size --;
+                        sd_bus_message_unref(bus->wqueue[0]);
                         memmove(bus->wqueue, bus->wqueue + 1, sizeof(sd_bus_message*) * bus->wqueue_size);
                         bus->windex = 0;
 



More information about the systemd-commits mailing list