[Commits] [SCM] claws branch, master, updated. 4.2.0-62-g211dc7a3d

wwp at claws-mail.org wwp at claws-mail.org
Sun Feb 25 16:00:04 CET 2024


The branch, master has been updated
       via  211dc7a3dc28a056e75dc63e23ab962f976c2fc7 (commit)
      from  163db8ed1457cc93f1f110f893bf932e386d94d8 (commit)

Summary of changes:
 src/prefs_folder_item.c | 1 +
 src/summaryview.c       | 1 +
 2 files changed, 2 insertions(+)


- Log -----------------------------------------------------------------
commit 211dc7a3dc28a056e75dc63e23ab962f976c2fc7
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 6c9fed835..eb72f980c 100644
--- a/src/prefs_folder_item.c
+++ b/src/prefs_folder_item.c
@@ -1852,6 +1852,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 bccc5a4ab..1ff6578d7 100644
--- a/src/summaryview.c
+++ b/src/summaryview.c
@@ -8305,6 +8305,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