Skip to content

json: review/update object allocation #3502

Description

@igaw

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions