The usual way to do this, do the allocation after the unique test. But I see there is more of this pattern already. Not to mention we don't check if is a valid pointer.
Let's fix this after this series. Rather not mixing too many things into one series.
Originally posted by @igaw in #3499 (comment)
The usual way to do this, do the allocation after the unique test. But I see there is more of this pattern already. Not to mention we don't check if is a valid pointer.
Let's fix this after this series. Rather not mixing too many things into one series.
Originally posted by @igaw in #3499 (comment)