[gdm/wip/misc-fixes: 21/23] manager: plug leak



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]