chiark / gitweb /
login: support more than just power-gpio-key
[elogind.git] / src / login / logind-user.c
index e5833ef50866fb75dde11ecd031a031358c3b7b1..63adc821080c9f4d9d12166c78f7bcda4205188c 100644 (file)
@@ -590,8 +590,7 @@ static int user_remove_runtime_path(User *u) {
         if (r < 0)
                 log_error_errno(r, "Failed to remove runtime directory %s: %m", u->runtime_path);
 
-        free(u->runtime_path);
-        u->runtime_path = NULL;
+        u->runtime_path = mfree(u->runtime_path);
 
         return r;
 }