[Commits] [SCM] claws branch, gtk3, updated. 4.0.0-268-g48010781a

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


The branch, gtk3 has been updated
       via  48010781a596ca1fd8acb1cbfbcf0cd56a98e866 (commit)
      from  2af46a6d14f61ad5d1f8af9bfa8cd134deabfe37 (commit)

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


- Log -----------------------------------------------------------------
commit 48010781a596ca1fd8acb1cbfbcf0cd56a98e866
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 693747a6a..9cf7ebe4d 100644
--- a/src/plugins/vcalendar/vcal_meeting_gtk.c
+++ b/src/plugins/vcalendar/vcal_meeting_gtk.c
@@ -1943,8 +1943,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 */
@@ -1967,6 +1965,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