Avoid a crash if realloc returns a different pointer.