systemctl: fix double unref of a dbus message
authorMichal Schmidt <mschmidt@redhat.com>
Sun, 5 Jun 2011 15:22:37 +0000 (17:22 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Sun, 5 Jun 2011 15:22:37 +0000 (17:22 +0200)
src/systemctl.c

index 99ada38..a82cce4 100644 (file)
@@ -1565,6 +1565,7 @@ static int check_unit(DBusConnection *bus, char **args, unsigned n) {
 
                         dbus_error_free(&error);
                         dbus_message_unref(m);
+                        m = NULL;
                         continue;
                 }