mirror of
https://github.com/weechat/weechat.git
synced 2026-06-12 14:14:48 +02:00
irc: fix crash when splitting a message with tags
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user