Deallocate all memory.