summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2018-08-15 09:33:25 +0200
committerSébastien Helleu <flashcode@flashtux.org>2018-08-15 09:33:25 +0200
commitaff752c50b468d0f641a43d5118b1ca6d42cc73d (patch)
tree1d0718545ab0e1d5737ff175ff79d735dc063b69 /src/plugins
parentbb8ac59c32a82bda8c2904c1ad24a8ed97a3800c (diff)
downloadweechat-aff752c50b468d0f641a43d5118b1ca6d42cc73d.zip
trigger: fix memory leak in hook_line trigger callback
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/trigger/trigger-callback.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/trigger/trigger-callback.c b/src/plugins/trigger/trigger-callback.c
index 0ef7cc279..b7fc81ad6 100644
--- a/src/plugins/trigger/trigger-callback.c
+++ b/src/plugins/trigger/trigger-callback.c
@@ -892,6 +892,9 @@ trigger_callback_line_cb (const void *pointer, void *data,
}
end:
+ if (tags)
+ weechat_string_free_split (tags);
+
TRIGGER_CALLBACK_CB_END(hashtable);
}