Fix a double-free segfault in the adhoc commands

Tue, 10 Feb 2009 05:42:53 +0000

author
Paul Aurich <darkrain42@pidgin.im>
date
Tue, 10 Feb 2009 05:42:53 +0000
changeset 25586
9bfe3ec054c1
parent 25576
c49c7da93426
child 25587
909556b2169b

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.

libpurple/protocols/jabber/adhoccommands.c file | annotate | diff | comparison | revisions
--- a/libpurple/protocols/jabber/adhoccommands.c	Sun Feb 08 10:34:31 2009 +0000
+++ b/libpurple/protocols/jabber/adhoccommands.c	Tue Feb 10 05:42:53 2009 +0000
@@ -229,7 +229,7 @@
 		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);
 	}

mercurial