Remove an illegal mem_d