Tue, 10 Feb 2009 05:42:53 +0000
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); }