[Commits] [SCM] claws branch, master, updated. 3.18.0-217-gb5ccfbc46

wwp at claws-mail.org wwp at claws-mail.org
Thu Sep 30 12:07:11 CEST 2021


The branch, master has been updated
       via  b5ccfbc46483d8de5dafa480c2002f515bbaf427 (commit)
      from  c8ce3b6e75a4f38a214dd30dfb1dacff8780d00a (commit)

Summary of changes:
 src/news_gtk.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)


- Log -----------------------------------------------------------------
commit b5ccfbc46483d8de5dafa480c2002f515bbaf427
Author: wwp <subscript at free.fr>
Date:   Thu Sep 30 12:03:17 2021 +0200

    Fix CID 1491341: resource leak.

diff --git a/src/news_gtk.c b/src/news_gtk.c
index e008219a6..6e8995633 100644
--- a/src/news_gtk.c
+++ b/src/news_gtk.c
@@ -253,7 +253,10 @@ static void unsubscribe_newsgroup_cb(GtkAction *action, gpointer data)
 							 ALERTFOCUS_FIRST, FALSE, NULL, ALERT_WARNING);
 	g_free(message);
 	g_free(name);
-	if (avalue != G_ALERTALTERNATE) return;
+	if (avalue != G_ALERTALTERNATE) {
+		g_free(old_id);
+		return;
+    }
 
 	if (item == folderview_get_opened_item(folderview)) {
 		summary_clear_all(folderview->summaryview);

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list