fix memory leaks.