summaryrefslogtreecommitdiff
path: root/daemon
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2017-08-23 09:26:11 -0400
committerRay Strode <rstrode@redhat.com>2017-08-23 09:35:23 -0400
commit42ae1307ed33829bfd29ac9a8c87049a25e46f09 (patch)
tree68060567b491d9f896a332e68f7236883be37951 /daemon
parentc683d022c3083c5966b48149e97afe8905f1bd51 (diff)
downloadgdm-42ae1307ed33829bfd29ac9a8c87049a25e46f09.tar.gz
manager: fix dangling pointer free
When reauthenticating, we can crash if no login screen is running on the seat (for instance, when building with --disable-user-display-server, and not user switching). The crash is due to a dangling pointer. This commit fixes that. https://bugzilla.gnome.org/show_bug.cgi?id=786656
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 148de5ac..b8e8d54d 100644
--- a/daemon/gdm-manager.c
+++ b/daemon/gdm-manager.c
@@ -2048,8 +2048,8 @@ on_session_reauthenticated (GdmSession *session,
gdm_display_unmanage (display);
gdm_display_finish (display);
}
+ g_free (session_id);
}
- g_free (session_id);
}
/* There should already be a session running, so jump to its