[gdm/wip/misc-fixes: 21/23] manager: plug leak
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdm/wip/misc-fixes: 21/23] manager: plug leak
- Date: Fri, 31 Aug 2018 20:27:25 +0000 (UTC)
commit 7f8c798770dc3e35502a5f9879ad123d16da0e55
Author: Ray Strode <rstrode redhat com>
Date: Fri Aug 31 14:49:23 2018 -0400
manager: plug leak
We're quering the session-type of a display and not freeing
the result.
daemon/gdm-manager.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]