[gdm: 54/70] Remove double free. Fixes bug #565018. Patch by William Jan Palenstijn



commit 43553cc8fb5261685ce5cd0f4fc8e530323bbcce
Author: Brian Cameron <brian cameron sun com>
Date:   Tue Feb 17 19:35:30 2009 +0000

    Remove double free. Fixes bug #565018. Patch by William Jan Palenstijn
    
    2009-02-17 Brian Cameron <brian cameron sun com>
    
            * daemon/gdm-xdmcp-display-factory.c: Remove double free.  Fixes bug
            #565018.  Patch by William Jan Palenstijn <wjp usecode org>.
    
    svn path=/trunk/; revision=6714
---
 ChangeLog                          |    5 +++++
 daemon/gdm-xdmcp-display-factory.c |    1 -
 2 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index c8dfa06..acce993 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2009-02-17 Brian Cameron <brian cameron sun com>
 
+	* daemon/gdm-xdmcp-display-factory.c: Remove double free.  Fixes bug
+	#565018.  Patch by William Jan Palenstijn <wjp usecode org>.
+
+2009-02-17 Brian Cameron <brian cameron sun com>
+
 	* utils/gdmflexiserver.c: Support VERSION command so that if user's
 	run gdmflexiser --command=VERSION, it will return the version number.
 	This is nice for backwards compatibility.  Fixes bug #535450.
diff --git a/daemon/gdm-xdmcp-display-factory.c b/daemon/gdm-xdmcp-display-factory.c
index 58cdf59..aa68ae0 100644
--- a/daemon/gdm-xdmcp-display-factory.c
+++ b/daemon/gdm-xdmcp-display-factory.c
@@ -794,7 +794,6 @@ gdm_xdmcp_send_willing (GdmXdmcpDisplayFactory *factory,
 
                 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]