[Commits] [SCM] claws branch, gtk3, updated. 4.0.0-165-ge97569bcb

wwp at claws-mail.org wwp at claws-mail.org
Sun Sep 12 12:37:04 CEST 2021


The branch, gtk3 has been updated
       via  e97569bcbc0861a6846a11492789ada403a41089 (commit)
      from  5fea1d0866a2feb58d8ce093e998a2c58f7dc84e (commit)

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


- Log -----------------------------------------------------------------
commit e97569bcbc0861a6846a11492789ada403a41089
Author: wwp <subscript at free.fr>
Date:   Sun Sep 12 12:36:34 2021 +0200

    Fix CID 1491332: resource leaks (3).

diff --git a/src/matcher.c b/src/matcher.c
index 8a1020987..655e32051 100644
--- a/src/matcher.c
+++ b/src/matcher.c
@@ -2431,11 +2431,13 @@ static int prefs_filtering_write(FILE *fp, GSList *prefs_filtering)
 		if (prop->enabled) {
 			if (claws_fputs("enabled ", fp) == EOF) {
 				FILE_OP_ERROR("filtering config", "claws_fputs");
+				g_free(filtering_str);
 				return -1;
 			}
 		} else {
 			if (claws_fputs("disabled ", fp) == EOF) {
 				FILE_OP_ERROR("filtering config", "claws_fputs");
+				g_free(filtering_str);
 				return -1;
 			}
 		}
@@ -2475,6 +2477,7 @@ static int prefs_filtering_write(FILE *fp, GSList *prefs_filtering)
 			tmp = g_strdup_printf("account %d ", prop->account_id);
 			if (claws_fputs(tmp, fp) == EOF) {
 				FILE_OP_ERROR("filtering config", "claws_fputs");
+				g_free(filtering_str);
 				g_free(tmp);
 				return -1;
 			}

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list