fix build failure
fix memory leaks