talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit bafa99458855388faed313cd875f19c90516e9f9
parent 7f47e75ae3d9eaccd67c02f731dc4ee7d625e17d
Author: wwp <subscript@free.fr>
Date:   Thu, 30 Sep 2021 11:03:35 +0200

Fix CID 1491353: resource leak.

Diffstat:
Msrc/plugins/vcalendar/vcal_meeting_gtk.c | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git 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);