summaryrefslogtreecommitdiff
path: root/daemon
diff options
context:
space:
mode:
authorAlessandro Bono <alessandro.bono369@gmail.com>2022-11-03 15:35:27 +0100
committerRay Strode <halfline@gmail.com>2023-04-28 19:41:28 +0000
commitf218d47ad7f509a12481a65e8ab28249b05e708d (patch)
treed81578ad6b671434107dc101886d9dfb1457a41f /daemon
parent021bf5747b1dfdc77cdb8e2b117e8c9972df681a (diff)
downloadgdm-f218d47ad7f509a12481a65e8ab28249b05e708d.tar.gz
gdm-manager: Plug a memory leak
client_session_is is not freed. While at it, use g_autofree.
Diffstat (limited to 'daemon')
-rw-r--r--daemon/gdm-manager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon/gdm-manager.c b/daemon/gdm-manager.c
index 7f44eb48..5a2d9125 100644
--- a/daemon/gdm-manager.c
+++ b/daemon/gdm-manager.c
@@ -979,7 +979,7 @@ on_reauthentication_client_rejected (GdmSession *session,
if (pid != pid_of_client) {
const char *session_id;
- char *client_session_id;
+ g_autofree char *client_session_id = NULL;
/* rejected client isn't the process that started the
* transient reauthentication session. If it's not even from the