destructor needs to free the memory.