summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2021-11-06 17:58:48 +0100
committerSébastien Helleu <flashcode@flashtux.org>2021-11-06 17:58:48 +0100
commitedfc415e9e8472b4520d201b14d7ec94734fc8f4 (patch)
tree8927781c784a15a1d1b2914c899f3cf51b361a84 /src
parent8bb5e333489aa37f945f3f3388196b560a354bab (diff)
downloadweechat-edfc415e9e8472b4520d201b14d7ec94734fc8f4.zip
irc: fix memory leak in main IRC message callback
Diffstat (limited to 'src')
-rw-r--r--src/plugins/irc/irc-protocol.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/irc/irc-protocol.c b/src/plugins/irc/irc-protocol.c
index 9ecbdab49..5b48634cf 100644
--- a/src/plugins/irc/irc-protocol.c
+++ b/src/plugins/irc/irc-protocol.c
@@ -7342,6 +7342,9 @@ irc_protocol_recv_command (struct t_irc_server *server,
(const char **)params,
num_params);
+ if (params)
+ weechat_string_free_split (params);
+
if (return_code == WEECHAT_RC_ERROR)
{
weechat_printf (server->buffer,