Fix memory leak #88