[gdm] Fix a free/g_free confusion
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdm] Fix a free/g_free confusion
- Date: Mon, 9 Jul 2012 16:43:27 +0000 (UTC)
commit a325fcbc8f6fc138057fb2812c4f2d32ecc1346c
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Jul 9 12:43:28 2012 -0400
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.
daemon/gdm-slave.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/daemon/gdm-slave.c b/daemon/gdm-slave.c
index 8634ee8..c1c4a97 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
*/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]