Fix not to change address of the memory that is already allocated by
alloc_*().