From 2597bafe367138ef7cbafd139a1e94da2befffd5 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Mon, 24 Dec 2012 15:40:50 +0100 Subject: [PATCH] irc: fix crash when splitting a message with tags --- src/plugins/irc/irc-message.c | 4 ++-- 1 file 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)