fix memory leak
memory leak