summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2018-08-31 14:49:23 -0400
committerRay Strode <halfline@gmail.com>2018-08-31 20:27:11 +0000
commit7f8c798770dc3e35502a5f9879ad123d16da0e55 (patch)
treeeed3e6d266753dd72cf6132812f1d2bdb9876c02
parent4d53ac0417a482204dbe5571402df3585f033608 (diff)
downloadgdm-7f8c798770dc3e35502a5f9879ad123d16da0e55.tar.gz
manager: plug leak
We're quering the session-type of a display and not freeing the result.
-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 f6684a8b..b52512d2 100644
--- a/daemon/gdm-manager.c
+++ b/daemon/gdm-manager.c
@@ -2143,7 +2143,7 @@ create_user_session_for_display (GdmManager *manager,
char *display_seat_id = NULL;
char *display_id = NULL;
#if defined(ENABLE_WAYLAND_SUPPORT) && defined(ENABLE_USER_DISPLAY_SERVER)
- char *display_session_type = NULL;
+ g_autofree char *display_session_type = NULL;
gboolean greeter_is_wayland;
#endif