[gdm-list] double-free in gdm with custom XDMCP Willing message



Hi,

In gdm's daemon/gdm-xdmcp-display-factory.c in gdm_xdmcp_send_willing()
there seems to be a double g_free(last_status) when using a custom
Willing message for xdmcp.

The attached patch (against SVN trunk) removes the extra g_free() call.

Best regards,
Willem Jan
Index: daemon/gdm-xdmcp-display-factory.c
===================================================================
--- daemon/gdm-xdmcp-display-factory.c	(revision 6588)
+++ daemon/gdm-xdmcp-display-factory.c	(working copy)
@@ -794,7 +794,6 @@
 
                 s = get_willing_output (factory);
                 if (s != NULL) {
-                        g_free (last_status);
                         last_status = s;
                 } else {
                         last_status = g_strdup (factory->priv->sysid);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]