[Commits] [SCM] claws branch, master, updated. 3.18.0-112-geba430d7a

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


The branch, master has been updated
       via  eba430d7ae598ce1ab77a5da727d3d98dd6c0073 (commit)
      from  6cca74bc3009ced8621a17c789bf0193f4a78399 (commit)

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


- Log -----------------------------------------------------------------
commit eba430d7ae598ce1ab77a5da727d3d98dd6c0073
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