Fix memory leak from