* free the ical struct after using it.
authorWilfried Göesgens <willi@citadel.org>
Thu, 8 Nov 2007 21:35:29 +0000 (21:35 +0000)
committerWilfried Göesgens <willi@citadel.org>
Thu, 8 Nov 2007 21:35:29 +0000 (21:35 +0000)
citadel/modules/calendar/serv_calendar.c

index d9505b33230654840926bf7713756e25b936335f..c97a4e82a63652092a96eaa4cb2dd23075614479 100644 (file)
@@ -126,6 +126,7 @@ void ical_write_to_cal(struct ctdluser *u, icalcomponent *cal) {
                encaps = ical_encapsulate_subcomponent(tmp);
                ical_write_to_cal(u, encaps);
                icalcomponent_free(tmp);
+               icalcomponent_free(encaps);
                return;
        }