diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2016-01-17 08:21:45 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2016-01-17 08:21:45 +0100 |
commit | 68b70fb185413a653acdd1b2f72a48aef498bd51 (patch) | |
tree | ef878af7ba38f1f3279fdc1ed9d86e149f5a54fe /src | |
parent | b0725c2b9b3f91e0d268cfd2512144e0ac4b21ee (diff) | |
download | weechat-68b70fb185413a653acdd1b2f72a48aef498bd51.zip |
irc: free allocated memory in case of early exit from the function
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/irc/irc-command.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/irc/irc-command.c b/src/plugins/irc/irc-command.c index 7a30f596a..f5f344a0b 100644 --- a/src/plugins/irc/irc-command.c +++ b/src/plugins/irc/irc-command.c @@ -1398,7 +1398,10 @@ irc_command_ctcp (void *data, struct t_gui_buffer *buffer, int argc, ctcp_type = strdup (argv[arg_type]); if (!ctcp_type) + { + weechat_string_free_split (targets); WEECHAT_COMMAND_ERROR; + } weechat_string_toupper (ctcp_type); |