From: Art Cancro Date: Thu, 18 Dec 2008 05:18:44 +0000 (+0000) Subject: * ical 'getics' now frees the icalcomponent data X-Git-Tag: v7.86~1700 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=8ab3a1a46f6af40c8b06f55ecfea32f84e63e619 * ical 'getics' now frees the icalcomponent data after serializing it but before transmitting it to the client. TODO: suppress duplicate VTIMEZONE components --- 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. */ - }