[Commits] [SCM] claws branch, master, updated. 4.2.0-21-gf5dd7ed44

wwp at claws-mail.org wwp at claws-mail.org
Tue Jan 2 09:02:57 UTC 2024


The branch, master has been updated
       via  f5dd7ed445349cd9f24e09a59eb77b7be8ca4a2b (commit)
      from  897e3cd0382e242c2dbb2dd08c68ffdadd2a7db1 (commit)

Summary of changes:
 src/matcher.c | 1 +
 1 file changed, 1 insertion(+)


- Log -----------------------------------------------------------------
commit f5dd7ed445349cd9f24e09a59eb77b7be8ca4a2b
Author: wwp <subscript at free.fr>
Date:   Tue Jan 2 10:02:55 2024 +0100

    Fix bug 4720 (resource leak), patch by olaf at aepfle.de.

diff --git a/src/matcher.c b/src/matcher.c
index fccf954cf..889d460d3 100644
--- a/src/matcher.c
+++ b/src/matcher.c
@@ -509,6 +509,7 @@ static gboolean matcherprop_string_match(MatcherProp *prop, const gchar *str,
 				    | ((prop->matchtype == MATCHTYPE_REGEXPCASE)
 				    ? REG_ICASE : 0)) != 0) {
 				prop->error = 1;
+                regfree(prop->preg);
 				g_free(prop->preg);
 				prop->preg = NULL;
 			}

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list