[Commits] [SCM] claws branch, gtk2, updated. 3.20.0-62-g80995a0db
wwp at claws-mail.org
wwp at claws-mail.org
Sun Feb 25 16:00:53 CET 2024
The branch, gtk2 has been updated
via 80995a0dbaf6faf5e6c28b544b9b5170f0f73ee7 (commit)
from 058d6720a9cd3010db2856ca6b8f8620f3b7aa7d (commit)
Summary of changes:
src/prefs_folder_item.c | 1 +
src/summaryview.c | 1 +
2 files changed, 2 insertions(+)
- Log -----------------------------------------------------------------
commit 80995a0dbaf6faf5e6c28b544b9b5170f0f73ee7
Author: wwp <subscript at free.fr>
Date: Sun Feb 25 15:59:56 2024 +0100
Fix bug 4749: release regex_t in summary_compile_simplify_regexp
diff --git a/src/prefs_folder_item.c b/src/prefs_folder_item.c
index 784035ac8..4d0b5b0ff 100644
--- a/src/prefs_folder_item.c
+++ b/src/prefs_folder_item.c
@@ -1882,6 +1882,7 @@ static regex_t *summary_compile_simplify_regexp(gchar *simplify_subject_regexp)
err = regcomp(preg, simplify_subject_regexp, REG_EXTENDED);
if (err) {
regerror(err, preg, buf, BUFFSIZE);
+ regfree(preg);
g_free(preg);
preg = NULL;
}
diff --git a/src/summaryview.c b/src/summaryview.c
index ad0f81bef..f116ff8fc 100644
--- a/src/summaryview.c
+++ b/src/summaryview.c
@@ -8323,6 +8323,7 @@ static regex_t *summary_compile_simplify_regexp(gchar *simplify_subject_regexp)
if (err) {
regerror(err, preg, buf, BUFFSIZE);
alertpanel_error(_("Regular expression (regexp) error:\n%s"), buf);
+ regfree(preg);
g_free(preg);
preg = NULL;
}
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list