summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2015-02-17 21:41:00 -0500
committerRay Strode <rstrode@redhat.com>2015-03-25 15:21:59 -0400
commit0f9b09493ea7f5fa555e364a7e6fd3b613b9c53c (patch)
tree43900ca48854bfe26823d6b1bae6a32b02a88872
parent658897c18835c4295de94df990708d4a5655bae8 (diff)
downloadgdm-0f9b09493ea7f5fa555e364a7e6fd3b613b9c53c.tar.gz
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
-rw-r--r--daemon/gdm-session.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon/gdm-session.c b/daemon/gdm-session.c
index 319b3633..1674bb67 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 *