chiark / gitweb /
systemctl: fix double unref of a dbus message
[elogind.git] / 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;
                 }