talons

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

commit 485502a2a443f2194a8353aa847fd7e238e34561
parent 4cf2d14f1056a16445858e5ce070b2138ab7c5b3
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;