From 5253b14020036f0c0e1dabc09f9b98f2803050b2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Wilfried=20G=C3=B6esgens?= Date: Fri, 12 Sep 2008 10:17:10 +0000 Subject: [PATCH] * potential leak while saving edited events fixed. --- webcit/event.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/webcit/event.c b/webcit/event.c index d3aac336f..5db5d32fe 100644 --- a/webcit/event.c +++ b/webcit/event.c @@ -765,6 +765,7 @@ STARTOVER: for (attendee = icalcomponent_get_first_property(vevent, ICAL_ATTENDE } icalmemory_free_ring (); icalcomponent_free(encaps); + encaps = NULL; } /** Or, check attendee availability if the user asked for that. */ @@ -777,6 +778,11 @@ STARTOVER: for (attendee = icalcomponent_get_first_property(vevent, ICAL_ATTENDE display_edit_individual_event(encaps, msgnum, from, unread); icalcomponent_free(encaps); + encaps = NULL; + } + if (encaps != NULL) { + icalcomponent_free(encaps); + encaps = NULL; } } -- 2.30.2