X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fical_subst.c;fp=webcit%2Fical_subst.c;h=385e40b66984a928a7a6fc1f6c2e5924b74a53fd;hb=5222da109513752ae1da984173fa232e68c6623f;hp=db30c668971f0292cd48bb3ab814c6eda431b095;hpb=bd1fc42057125d2a9760b5295e91ce7b8be3dedc;p=citadel.git diff --git a/webcit/ical_subst.c b/webcit/ical_subst.c index db30c6689..385e40b66 100644 --- a/webcit/ical_subst.c +++ b/webcit/ical_subst.c @@ -417,7 +417,7 @@ HashList *iterate_FindConflict(StrBuf *Target, WCTemplputParams *TP) Done = 1; } else { - Conflict = (CalendarConflict *) malloc(sizeof(CalendarConflict *)); + Conflict = (CalendarConflict *) malloc(sizeof(CalendarConflict)); Conflict->conflict_event_uid = NewStrBufPlain(NULL, StrLength(Line)); Conflict->conflict_event_summary = NewStrBufPlain(NULL, StrLength(Line)); @@ -432,6 +432,7 @@ HashList *iterate_FindConflict(StrBuf *Target, WCTemplputParams *TP) Pos = NULL; } } + FreeStrBuf(&Line); syslog(9, "...done.\n"); return Conflicts; }