summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2023-07-20 08:49:23 +0200
committerSébastien Helleu <flashcode@flashtux.org>2023-07-20 08:49:23 +0200
commit13241cdca5b39415d2a0f9e1b55a79153d14ba07 (patch)
tree43661fd71817f3735b1ed0e7de20a89563634da6 /src
parent93dfc8b1059f873ad306a3eb5f7d39b4507b9f62 (diff)
downloadweechat-13241cdca5b39415d2a0f9e1b55a79153d14ba07.zip
irc: fix memory leak in IRC message parser
Bug was introduced in WeeChat 3.4 by commit c4b4d80936b5b1fe9f179a481f5c3a325ff8e42e.
Diffstat (limited to 'src')
-rw-r--r--src/plugins/irc/irc-message.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/irc/irc-message.c b/src/plugins/irc/irc-message.c
index f89e673f8..4889dc7a1 100644
--- a/src/plugins/irc/irc-message.c
+++ b/src/plugins/irc/irc-message.c
@@ -529,6 +529,8 @@ irc_message_parse_to_hashtable (struct t_irc_server *server,
free (arguments);
if (text)
free (text);
+ if (params)
+ weechat_string_free_split (params);
return hashtable;
}