diff options
author | Alessandro Bono <alessandro.bono369@gmail.com> | 2022-11-03 16:46:14 +0100 |
---|---|---|
committer | Ray Strode <halfline@gmail.com> | 2023-04-28 19:41:28 +0000 |
commit | 89148f111d0ae91b5ba23776a6c57e917e5a13dc (patch) | |
tree | 6a6f673abcec5f9c039ffbc81b2a9b3fd4fc1690 /daemon | |
parent | c750f0137c15ca2bc7741e4ec5d0af8edabc1ae4 (diff) | |
download | gdm-89148f111d0ae91b5ba23776a6c57e917e5a13dc.tar.gz |
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.
Diffstat (limited to 'daemon')
-rw-r--r-- | daemon/gdm-session.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 * |