calendarProvider: Fix nasty bug in event search function where alloca would be called many times inside the same function.