From 89148f111d0ae91b5ba23776a6c57e917e5a13dc Mon Sep 17 00:00:00 2001 From: Alessandro Bono Date: Thu, 3 Nov 2022 16:46:14 +0100 Subject: gdm-session: Plug memory leaks The function is supposed to return const char *. Every caller is not freeing the returned string. Don't duplicate it. --- daemon/gdm-session.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'daemon/gdm-session.c') diff --git a/daemon/gdm-session.c b/daemon/gdm-session.c index 4b8ba156..0b438651 100644 --- a/daemon/gdm-session.c +++ b/daemon/gdm-session.c @@ -3187,7 +3187,7 @@ gdm_session_get_display_seat_id (GdmSession *self) { g_return_val_if_fail (GDM_IS_SESSION (self), NULL); - return g_strdup (self->display_seat_id); + return self->display_seat_id; } const char * -- cgit v1.2.1