page 386. fix memory leak