[Commits] [SCM] claws branch, gtk3, updated. 4.0.0-244-g7e51f51b5
wwp at claws-mail.org
wwp at claws-mail.org
Tue Sep 28 14:37:23 CEST 2021
The branch, gtk3 has been updated
via 7e51f51b5992a4d6c5821c1c23032b5ae9a1ca6c (commit)
from 104cf039b750ae9f7d401cb7e0288a31776aa1cd (commit)
Summary of changes:
src/plugins/bogofilter/bogofilter.c | 1 +
src/plugins/bsfilter/bsfilter.c | 6 ++++--
2 files changed, 5 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit 7e51f51b5992a4d6c5821c1c23032b5ae9a1ca6c
Author: wwp <subscript at free.fr>
Date: Tue Sep 28 14:27:11 2021 +0200
Fix CID 1491076 and 1491352: resource leaks.
diff --git a/src/plugins/bogofilter/bogofilter.c b/src/plugins/bogofilter/bogofilter.c
index a3f6c6691..92f239fc2 100644
--- a/src/plugins/bogofilter/bogofilter.c
+++ b/src/plugins/bogofilter/bogofilter.c
@@ -730,6 +730,7 @@ int bogofilter_learn(MsgInfo *msginfo, GSList *msglist, gboolean spam)
return -1;
}
+ /* process *either* a msginfo or a msglist */
if (msginfo) {
file = procmsg_get_message_file(msginfo);
if (file == NULL) {
diff --git a/src/plugins/bsfilter/bsfilter.c b/src/plugins/bsfilter/bsfilter.c
index 8c47d8224..e93a2e43b 100644
--- a/src/plugins/bsfilter/bsfilter.c
+++ b/src/plugins/bsfilter/bsfilter.c
@@ -1,7 +1,7 @@
/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2009 Colin Leroy <colin at colino.net> and
- * the Claws Mail team
+ * Copyright (C) 1999-2021 the Claws Mail team and
+ * Colin Leroy <colin at colino.net>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -172,6 +172,7 @@ static void bsfilter_do_filter(BsFilterData *data)
#endif
status = execute_command_line(classify, FALSE,
claws_get_startup_dir());
+ g_free(classify);
}
if (config.whitelist_ab)
@@ -458,6 +459,7 @@ int bsfilter_learn(MsgInfo *msginfo, GSList *msglist, gboolean spam)
if (msginfo == NULL && msglist == NULL) {
return -1;
}
+ /* process *either* a msginfo or a msglist */
if (msginfo != NULL && msglist == NULL) {
msglist = g_slist_append(NULL, msginfo);
free_list = TRUE;
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list