talons

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

commit ae0353bbfb07942f82408c66c95f65d0f2adcf8a
parent c7452669c0da537cb3382c9e55aae142d34d90c4
Author: wwp <subscript@free.fr>
Date:   Mon,  4 Oct 2021 18:05:02 +0200

Fix CID 1491068 and 1491217: resource leaks.

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

diff --git a/src/filtering.c b/src/filtering.c @@ -540,6 +540,8 @@ static gboolean filteringaction_apply(FilteringAction * action, MsgInfo * info) } else { g_warning("header '%s' not set or empty", action->header?action->header:"(null)"); } + if (header) + procheader_header_free(header); return (errors == 0); } default: @@ -1008,6 +1010,7 @@ gchar *filteringaction_to_string(FilteringAction *action) break; default: + g_string_free(dest, TRUE); return NULL; } deststr = dest->str;