Fix memory leak in timings