Removed memory leaks (!frozen)