]> err.no Git - systemd/commitdiff
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 99ada38309b7e3ab02a94f99b52e270cc79b7ae4..a82cce4ae926d86f226943cd45bfe95976e7a303 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;
                 }