diff --git a/src/login/logind-dbus.c b/src/login/logind-dbus.c index e22e82cd7c..7f6a6cce18 100644 --- a/src/login/logind-dbus.c +++ b/src/login/logind-dbus.c @@ -2180,8 +2180,8 @@ static void reset_scheduled_shutdown(Manager *m) { m->scheduled_shutdown_type = NULL; m->scheduled_shutdown_timeout = USEC_INFINITY; m->scheduled_shutdown_uid = UID_INVALID; - freep(&m->scheduled_shutdown_tty); - freep(&m->wall_message); + m->scheduled_shutdown_tty = mfree(m->scheduled_shutdown_tty); + m->wall_message = mfree(m->wall_message); m->shutdown_dry_run = false; if (m->unlink_nologin) {