irc: fix memory leak when receiving a message with tags

This commit is contained in:
Sébastien Helleu 2018-03-25 17:27:15 +02:00
parent a38533cb41
commit 9dd8cc0d6a
2 changed files with 6 additions and 0 deletions

View File

@ -26,6 +26,10 @@ Improvements::
* core: allow merge of buffers by name in command /buffer (issue #1159) * core: allow merge of buffers by name in command /buffer (issue #1159)
Bug fixes::
* irc: fix memory leak when receiving a message with tags
Documentation:: Documentation::
* core: split man pages weechat and weechat-headless * core: split man pages weechat and weechat-headless

View File

@ -3027,6 +3027,8 @@ irc_server_msgq_flush ()
if (new_msg2) if (new_msg2)
free (new_msg2); free (new_msg2);
if (tags)
free (tags);
if (nick) if (nick)
free (nick); free (nick);
if (host) if (host)