[Commits] [SCM] claws branch, master, updated. 3.17.3-55-g1493d83

ticho at claws-mail.org ticho at claws-mail.org
Fri Feb 8 19:49:49 CET 2019


The branch, master has been updated
       via  1493d8362f7760ab03c0715f39e35208d1ceb796 (commit)
      from  48a284c9477aa5fdfc8380e847e9c84709ea7da4 (commit)

Summary of changes:
 src/plugins/rssyl/rssyl.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)


- Log -----------------------------------------------------------------
commit 1493d8362f7760ab03c0715f39e35208d1ceb796
Author: Andrej Kacian <ticho at claws-mail.org>
Date:   Fri Feb 8 19:49:27 2019 +0100

    Fix a small memory leak in rssyl_remove_msgs()

diff --git a/src/plugins/rssyl/rssyl.c b/src/plugins/rssyl/rssyl.c
index 7b0938c..fdd1816 100644
--- a/src/plugins/rssyl/rssyl.c
+++ b/src/plugins/rssyl/rssyl.c
@@ -873,7 +873,6 @@ static gint rssyl_remove_msgs(Folder *folder, FolderItem *item,
 {
 	gboolean need_scan = FALSE;
 	MsgInfoList *cur;
-	gchar *file;
 	gint processed = 0;
 
 	RFolderItem *ritem = (RFolderItem *)item;
@@ -885,6 +884,7 @@ static gint rssyl_remove_msgs(Folder *folder, FolderItem *item,
 	rssyl_deleted_update(ritem);
 
 	for (cur = msglist; cur != NULL; cur = cur->next) {
+		gchar *file;
 		MsgInfo *msginfo = (MsgInfo *)cur->data;
 
 		if (msginfo == NULL)
@@ -898,9 +898,9 @@ static gint rssyl_remove_msgs(Folder *folder, FolderItem *item,
 
 		if (claws_unlink(file) < 0) {
 			FILE_OP_ERROR(file, "unlink");
-			g_free(file);
 		}
 
+		g_free(file);
 		processed++;
 	}
 

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list