[Commits] [SCM] claws branch, master, updated. 3.18.0-237-g485502a2a

wwp at claws-mail.org wwp at claws-mail.org
Mon Oct 4 18:05:27 CEST 2021


The branch, master has been updated
       via  485502a2a443f2194a8353aa847fd7e238e34561 (commit)
      from  4cf2d14f1056a16445858e5ce070b2138ab7c5b3 (commit)

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


- Log -----------------------------------------------------------------
commit 485502a2a443f2194a8353aa847fd7e238e34561
Author: wwp <subscript at free.fr>
Date:   Mon Oct 4 18:05:02 2021 +0200

    Fix CID 1491068 and 1491217: resource leaks.

diff --git a/src/filtering.c b/src/filtering.c
index 9e1d98158..d5ee27da0 100644
--- 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;

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list