Memory leaks

Point 5.