fix memory leak
fix memory leak