[gdm/gnome-3-14] session: plug memory leak
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdm/gnome-3-14] session: plug memory leak
- Date: Wed, 25 Mar 2015 20:15:03 +0000 (UTC)
commit 0f9b09493ea7f5fa555e364a7e6fd3b613b9c53c
Author: Ray Strode <rstrode redhat com>
Date: Tue Feb 17 21:41:00 2015 -0500
session: plug memory leak
gdm_session_get_session_id erroneously strdup's it's return value.
https://bugzilla.gnome.org/show_bug.cgi?id=744764
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 319b363..1674bb6 100644
--- a/daemon/gdm-session.c
+++ b/daemon/gdm-session.c
@@ -2789,7 +2789,7 @@ gdm_session_get_session_id (GdmSession *self)
return NULL;
}
- return g_strdup (conversation->session_id);
+ return conversation->session_id;
}
static char *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]