]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
logind: use mfree instead of freep
authorLudwig Nussel <ludwig.nussel@suse.de>
Mon, 7 Mar 2022 12:33:59 +0000 (13:33 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Mon, 7 Mar 2022 19:43:18 +0000 (19:43 +0000)
src/login/logind-dbus.c

index e22e82cd7c71ca506a36fbc85d155dcb17951c81..7f6a6cce183f818ea24dc639e728d5010f79b4d2 100644 (file)
@@ -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) {