Edit TimeEvent

Remove redundant memory allocation