diff options
author | Ray Strode <rstrode@redhat.com> | 2018-06-22 14:44:11 -0400 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2018-06-22 16:09:45 -0400 |
commit | 7e39951149306089e2f32c2ec420c10ce8c083c2 (patch) | |
tree | c2e693a6b4befc21395bd9480767d8c287a1cb94 | |
parent | bfdb201bb43ed4cab7b5227e457ee16f16d47ddb (diff) | |
download | gdm-7e39951149306089e2f32c2ec420c10ce8c083c2.tar.gz |
manager: plug leak in maybe_activate_other_session
The function asks logind what the currently active session is on the
given seat. It then leaks the response.
This commit plugs the leak.
-rw-r--r-- | daemon/gdm-manager.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/daemon/gdm-manager.c b/daemon/gdm-manager.c index 26b2c667..155e009f 100644 --- a/daemon/gdm-manager.c +++ b/daemon/gdm-manager.c @@ -1424,7 +1424,7 @@ maybe_activate_other_session (GdmManager *self, GdmDisplay *old_display) { char *seat_id = NULL; - char *session_id; + char *session_id = NULL; int ret; g_object_get (G_OBJECT (old_display), @@ -1443,6 +1443,8 @@ maybe_activate_other_session (GdmManager *self, if (display == NULL) { activate_login_window_session_on_seat (self, seat_id); } + + g_free (session_id); } g_free (seat_id); |