talons

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

commit 48010781a596ca1fd8acb1cbfbcf0cd56a98e866
parent 2af46a6d14f61ad5d1f8af9bfa8cd134deabfe37
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 @@ -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);