commit 35d7347e142b5d313e2b86440ddf80660c1f1f0c
parent 261e507d3cb4a7e36bc2a767ecc8a640e6b2aadb
Author: wwp <subscript@free.fr>
Date: Thu, 30 Sep 2021 09:55:25 +0200
Fix memory corruption caused by a double free.
Diffstat:
1 file changed, 0 insertions(+), 3 deletions(-)
diff --git a/src/plugins/vcalendar/vcal_meeting_gtk.c b/src/plugins/vcalendar/vcal_meeting_gtk.c
@@ -1942,7 +1942,6 @@ gboolean vcal_meeting_export_calendar(const gchar *path,
if (str_write_to_file(icalcomponent_as_ical_string(calendar), tmpfile, TRUE) < 0) {
alertpanel_error(_("Could not export the calendar."));
g_free(tmpfile);
- g_free(internal_file);
icalcomponent_free(calendar);
g_slist_free(list);
g_slist_free(subs);
@@ -1964,7 +1963,6 @@ putfile:
if (automatic && (!path || strlen(path) == 0 || !vcalprefs.export_enable)) {
g_free(tmpfile);
- g_free(internal_file);
g_free(file);
return TRUE;
}
@@ -2000,7 +1998,6 @@ putfile:
}
}
g_free(tmpfile);
- g_free(internal_file);
g_free(file);
return res;
}