diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2021-11-06 17:58:48 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2021-11-06 17:58:48 +0100 |
commit | edfc415e9e8472b4520d201b14d7ec94734fc8f4 (patch) | |
tree | 8927781c784a15a1d1b2914c899f3cf51b361a84 /src | |
parent | 8bb5e333489aa37f945f3f3388196b560a354bab (diff) | |
download | weechat-edfc415e9e8472b4520d201b14d7ec94734fc8f4.zip |
irc: fix memory leak in main IRC message callback
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/irc/irc-protocol.c | 3 |
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, |