From 8ab3a1a46f6af40c8b06f55ecfea32f84e63e619 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Thu, 18 Dec 2008 05:18:44 +0000 Subject: [PATCH] * ical 'getics' now frees the icalcomponent data after serializing it but before transmitting it to the client. TODO: suppress duplicate VTIMEZONE components --- citadel/modules/calendar/serv_calendar.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/citadel/modules/calendar/serv_calendar.c b/citadel/modules/calendar/serv_calendar.c index 27d256e01..247d17740 100644 --- a/citadel/modules/calendar/serv_calendar.c +++ b/citadel/modules/calendar/serv_calendar.c @@ -1547,11 +1547,10 @@ void ical_getics(void) ); ser = icalcomponent_as_ical_string_r(encaps); + icalcomponent_free(encaps); /* Don't need this anymore. */ client_write(ser, strlen(ser)); free(ser); cprintf("\n000\n"); - icalcomponent_free(encaps); /* Don't need this anymore. */ - } -- 2.30.2