From 394a6ab68cf6eafca20cc3391e90c8d67e88e9f9 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 19 Nov 2024 23:23:21 +0100 Subject: [PATCH] logind: also potentially GC the session if we cannot send reply --- src/login/logind-dbus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/login/logind-dbus.c b/src/login/logind-dbus.c index dc5c054d47f..56531a22f6a 100644 --- a/src/login/logind-dbus.c +++ b/src/login/logind-dbus.c @@ -1152,7 +1152,7 @@ static int create_session( * all is complete - or wait again. */ r = session_send_create_reply(session, /* error= */ NULL); if (r < 0) - return r; + goto fail; return 1; -- 2.47.3