summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2021-11-06 17:55:31 +0100
committerSébastien Helleu <flashcode@flashtux.org>2021-11-06 17:55:31 +0100
commit8bb5e333489aa37f945f3f3388196b560a354bab (patch)
treec0c59e88a149b2f27017e043c72dd32f0d45158c /src/plugins
parentb3cf7658f7dfae712a5f9976171cbe91742ad60f (diff)
downloadweechat-8bb5e333489aa37f945f3f3388196b560a354bab.zip
irc: fix memory leak in callback of IRC message 353
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/irc/irc-protocol.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/irc/irc-protocol.c b/src/plugins/irc/irc-protocol.c
index 66c03405d..9ecbdab49 100644
--- a/src/plugins/irc/irc-protocol.c
+++ b/src/plugins/irc/irc-protocol.c
@@ -5597,6 +5597,8 @@ IRC_PROTOCOL_CALLBACK(353)
free (str_params);
if (str_nicks)
weechat_string_dyn_free (str_nicks, 1);
+ if (nicks)
+ weechat_string_free_split (nicks);
return WEECHAT_RC_OK;
}