[Commits] [SCM] claws branch, master, updated. 3.18.0-210-gbafa99458

wwp at claws-mail.org wwp at claws-mail.org
Thu Sep 30 11:03:54 CEST 2021


The branch, master has been updated
       via  bafa99458855388faed313cd875f19c90516e9f9 (commit)
      from  7f47e75ae3d9eaccd67c02f731dc4ee7d625e17d (commit)

Summary of changes:
 src/plugins/vcalendar/vcal_meeting_gtk.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)


- Log -----------------------------------------------------------------
commit bafa99458855388faed313cd875f19c90516e9f9
Author: wwp <subscript at free.fr>
Date:   Thu Sep 30 11:03:35 2021 +0200

    Fix CID 1491353: resource leak.

diff --git a/src/plugins/vcalendar/vcal_meeting_gtk.c b/src/plugins/vcalendar/vcal_meeting_gtk.c
index 8a019113b..92b9861c1 100644
--- a/src/plugins/vcalendar/vcal_meeting_gtk.c
+++ b/src/plugins/vcalendar/vcal_meeting_gtk.c
@@ -1929,8 +1929,6 @@ gboolean vcal_meeting_export_calendar(const gchar *path,
 	if (str_write_to_file(icalcomponent_as_ical_string(calendar), internal_file, TRUE) < 0) {
 		g_warning("can't export internal cal");
 	}
-	
-	g_free(internal_file);
 
 	for (cur = subs; cur; cur = cur->next) {
 		/* Not to be freed */
@@ -1953,6 +1951,7 @@ gboolean vcal_meeting_export_calendar(const gchar *path,
 	icalcomponent_free(calendar);
 	
 putfile:
+	g_free(internal_file);
 	g_slist_free(list);
 	g_slist_free(subs);
 

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list