talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit eba430d7ae598ce1ab77a5da727d3d98dd6c0073
parent 6cca74bc3009ced8621a17c789bf0193f4a78399
Author: wwp <subscript@free.fr>
Date:   Sun, 12 Sep 2021 12:36:34 +0200

Fix CID 1491332: resource leaks (3).

Diffstat:
Msrc/matcher.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git 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; }