pidgin: eaa137ae: Fix a double-free segfault in the adhoc ...

paul at darkrain42.org paul at darkrain42.org
Tue Feb 10 00:45:36 EST 2009


-----------------------------------------------------------------
Revision: eaa137ae31ea2eb08bd918eecc45c5de6e2016a3
Ancestor: 0e02d55d1b8b8badfa78439d77bda433a7c66a73
Author: paul at darkrain42.org
Date: 2009-02-10T05:42:53
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/eaa137ae31ea2eb08bd918eecc45c5de6e2016a3

Modified files:
        libpurple/protocols/jabber/adhoccommands.c

ChangeLog: 

Fix a double-free segfault in the adhoc commands

This was triggered by [b3b179b8def361326c66b090679e52804802631e] and, even
though I don't know why that triggered this code (yet), this is clearly wrong.

-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/adhoccommands.c	c0cd56217d0f15123226823ea3521e117c3041c6
+++ libpurple/protocols/jabber/adhoccommands.c	52af2a7750557da38ba6e113086678f029f80805
@@ -229,7 +229,7 @@ static void jabber_adhoc_server_got_list
 		JabberAdHocCommands *cmd = js->commands->data;
 		g_free(cmd->jid);
 		g_free(cmd->node);
-		g_free(cmd->node);
+		g_free(cmd->name);
 		g_free(cmd);
 		js->commands = g_list_delete_link(js->commands, js->commands);
 	}


More information about the Commits mailing list