summaryrefslogtreecommitdiff
path: root/src/plugins/irc/irc-message.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2012-12-24 15:40:50 +0100
committerSebastien Helleu <flashcode@flashtux.org>2012-12-24 15:40:50 +0100
commit2597bafe367138ef7cbafd139a1e94da2befffd5 (patch)
tree7d141f6e88373665e1945321e35f1de480c69a85 /src/plugins/irc/irc-message.c
parent33f01dcb636b012c4d4dc95bc9d9978d7337dc97 (diff)
downloadweechat-2597bafe367138ef7cbafd139a1e94da2befffd5.zip
irc: fix crash when splitting a message with tags
Diffstat (limited to 'src/plugins/irc/irc-message.c')
-rw-r--r--src/plugins/irc/irc-message.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/irc/irc-message.c b/src/plugins/irc/irc-message.c
index c1cd85382..34d224e13 100644
--- a/src/plugins/irc/irc-message.c
+++ b/src/plugins/irc/irc-message.c
@@ -944,14 +944,14 @@ irc_message_split (struct t_irc_server *server, const char *message)
}
end:
- if (tags)
- free (tags);
if (!split_ok
|| (weechat_hashtable_get_integer (hashtable, "items_count") == 0))
{
irc_message_split_add (hashtable, 1, tags, message, arguments);
}
+ if (tags)
+ free (tags);
if (argv)
weechat_string_free_split (argv);
if (argv_eol)