Simplified memory cleanup