summaryrefslogtreecommitdiff
path: root/daemon
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2012-07-09 12:43:28 -0400
committerMatthias Clasen <mclasen@redhat.com>2012-07-09 12:43:28 -0400
commita325fcbc8f6fc138057fb2812c4f2d32ecc1346c (patch)
tree7b28d8373669d6b9f9d8a9cd88d48c53c9151ea6 /daemon
parent93090b7c7f2ae4c945173f4e61357ff801cde768 (diff)
downloadgdm-a325fcbc8f6fc138057fb2812c4f2d32ecc1346c.tar.gz
Fix a free/g_free confusion
The type string is allocated by sd_session_get_type, and is documented as 'free with libc free', so don't call g_free on it, which might theoretically be something else.
Diffstat (limited to 'daemon')
-rw-r--r--daemon/gdm-slave.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon/gdm-slave.c b/daemon/gdm-slave.c
index 8634ee8a..c1c4a97a 100644
--- a/daemon/gdm-slave.c
+++ b/daemon/gdm-slave.c
@@ -1432,7 +1432,7 @@ gdm_slave_get_primary_session_id_for_user_from_systemd (GdmSlave *slave,
}
is_x11 = g_strcmp0 (type, "x11") == 0;
- g_free (type);
+ free (type);
/* Only migrate to graphical sessions
*/