mirror of
https://github.com/weechat/weechat.git
synced 2026-06-27 05:16:38 +02:00
trigger: fix memory leak when allocating a new trigger with several regex
This commit is contained in:
@@ -49,6 +49,7 @@ http://weechat.org/files/releasenotes/ReleaseNotes-devel.html[release notes]
|
||||
* relay: use comma separator in option relay.irc.backlog_tags, check the value
|
||||
of option when it is changed with /set
|
||||
* relay: remove "::ffff:" from IPv4-mapped IPv6 client address (closes #111)
|
||||
* trigger: fix memory leak when allocating a new trigger with several regex
|
||||
|
||||
== Version 1.0.1 (2014-09-28)
|
||||
|
||||
|
||||
@@ -572,6 +572,8 @@ trigger_regex_split (const char *str_regex,
|
||||
pos_replace - ptr_regex);
|
||||
if (!(*regex)[index].str_regex)
|
||||
goto memory_error;
|
||||
if (str_regex_escaped)
|
||||
free (str_regex_escaped);
|
||||
str_regex_escaped = weechat_string_convert_escaped_chars ((*regex)[index].str_regex);
|
||||
if (!str_regex_escaped)
|
||||
goto memory_error;
|
||||
|
||||
Reference in New Issue
Block a user