Cleaning the memory.