# HG changeset patch # User Paul Aurich <paul@darkrain42.org> # Date 1234244573 0 # Node ID a1b2f2dd48498071b45ca06f93cd10dd0159c7c2 # Parent cddd7961901f5f81e245829ebdc868396f8acd96 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. diff -r cddd7961901f -r a1b2f2dd4849 libpurple/protocols/jabber/adhoccommands.c --- 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); }