changeset 25071:a1b2f2dd4849

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.
author Paul Aurich <paul@darkrain42.org>
date Tue, 10 Feb 2009 05:42:53 +0000
parents cddd7961901f
children d720bedc091e
files libpurple/protocols/jabber/adhoccommands.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);
 	}