[Commits] [SCM] claws branch, master, updated. 3.18.0-185-g415e7de0d
wwp at claws-mail.org
wwp at claws-mail.org
Tue Sep 28 14:27:50 CEST 2021
The branch, master has been updated
via 415e7de0d1587ea0fe323b9eadbbc2f163eb97d2 (commit)
from d8833eba98a94e586c755ac1d39d5ca444fa9cef (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 415e7de0d1587ea0fe323b9eadbbc2f163eb97d2
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 2780affbb..678d2d6c4 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 569909c9c..c52e89e0c 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