[Commits] [SCM] claws branch, master, updated. 3.14.0-69-gb274c72
ticho at claws-mail.org
ticho at claws-mail.org
Sat Sep 10 00:07:20 CEST 2016
The branch, master has been updated
via b274c72a2b5b7b482a48b75bee15d13eecf3d8cd (commit)
from fbb619d6ae6150a53b4b0bd5aa08ce53e3c6f253 (commit)
Summary of changes:
src/plugins/rssyl/parse822.c | 4 +++-
src/plugins/rssyl/rssyl_add_item.c | 1 +
src/plugins/rssyl/rssyl_deleted.c | 4 ++++
src/plugins/rssyl/rssyl_update_comments.c | 3 +++
4 files changed, 11 insertions(+), 1 deletion(-)
- Log -----------------------------------------------------------------
commit b274c72a2b5b7b482a48b75bee15d13eecf3d8cd
Author: Andrej Kacian <ticho at claws-mail.org>
Date: Sat Sep 10 00:07:01 2016 +0200
Fix memory leak when freeing RSSyl's FeedItem struct.
diff --git a/src/plugins/rssyl/parse822.c b/src/plugins/rssyl/parse822.c
index ca8b842..c3cd109 100644
--- a/src/plugins/rssyl/parse822.c
+++ b/src/plugins/rssyl/parse822.c
@@ -235,8 +235,10 @@ static void rssyl_flush_folder_func(gpointer data, gpointer user_data)
FeedItem *item = (FeedItem *)data;
RFeedCtx *ctx = (RFeedCtx *)item->data;
- if( ctx != NULL && ctx->path != NULL)
+ if( ctx != NULL && ctx->path != NULL) {
g_free(ctx->path);
+ g_free(ctx);
+ }
feed_item_free(item);
}
diff --git a/src/plugins/rssyl/rssyl_add_item.c b/src/plugins/rssyl/rssyl_add_item.c
index 922ad4e..b280609 100644
--- a/src/plugins/rssyl/rssyl_add_item.c
+++ b/src/plugins/rssyl/rssyl_add_item.c
@@ -363,6 +363,7 @@ void rssyl_add_item(RFolderItem *ritem, FeedItem *feed_item)
}
g_free(ctx->path);
+ g_free(ctx);
feed_item_free(old_item);
old_item = NULL;
}
diff --git a/src/plugins/rssyl/rssyl_deleted.c b/src/plugins/rssyl/rssyl_deleted.c
index 7a4aabe..f584356 100644
--- a/src/plugins/rssyl/rssyl_deleted.c
+++ b/src/plugins/rssyl/rssyl_deleted.c
@@ -235,6 +235,10 @@ void rssyl_deleted_add(RFolderItem *ritem, gchar *path)
g_free(deleted_file);
rssyl_deleted_free(deleted_items);
+
+ RFeedCtx *ctx = (RFeedCtx *)fitem->data;
+ g_free(ctx->path);
+ g_free(ctx);
feed_item_free(fitem);
}
diff --git a/src/plugins/rssyl/rssyl_update_comments.c b/src/plugins/rssyl/rssyl_update_comments.c
index c609619..8d05d6c 100644
--- a/src/plugins/rssyl/rssyl_update_comments.c
+++ b/src/plugins/rssyl/rssyl_update_comments.c
@@ -130,6 +130,9 @@ void rssyl_update_comments(RFolderItem *ritem)
STATUSBAR_POP(mainwin);
+ RFeedCtx *ctx = (RFeedCtx *)fi->data;
+ g_free(ctx->path);
+ g_free(ctx);
feed_item_free(fi);
}
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list