summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2022-05-24 22:12:40 +0200
committerSébastien Helleu <flashcode@flashtux.org>2022-05-27 17:53:56 +0200
commit5876a8335f00faaf0c25259f4a7712b45e040be0 (patch)
treeaf940ed949ec9174b7e459615f06903abbd03a47 /src
parentcefed2591293873d25718613fcfda460ff32eb49 (diff)
downloadweechat-5876a8335f00faaf0c25259f4a7712b45e040be0.zip
trigger: fix memory leak in command `/trigger addinput`
Diffstat (limited to 'src')
-rw-r--r--src/plugins/trigger/trigger-command.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/trigger/trigger-command.c b/src/plugins/trigger/trigger-command.c
index fe2466ec9..7c83d58b4 100644
--- a/src/plugins/trigger/trigger-command.c
+++ b/src/plugins/trigger/trigger-command.c
@@ -720,6 +720,8 @@ trigger_command_trigger (const void *pointer, void *data,
weechat_buffer_set (buffer, "input_pos", "13");
free (input);
}
+ if (items)
+ weechat_string_free_split (items);
goto end;
}