fix memory leaks :-)