summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)