Skip to content

Marshalling generators LastIndexMarshalled tracking doesn't free partially marshalled inner array elements if marshalling fails #93431

@jtschuster

Description

@jtschuster

For jagged arrays, the marshallers won't free a partially marshalled inner array because it doesn't consider the inner array to have completed marshalling until all inner elements are marshalled, and therefore assumes the inner array doesn't need to be freed. Usually this is the behavior we want, because most array elements can't be partially marshalled and won't need partial freeing, but inner arrays of jagged arrays may be partially marshalled.

This is an unsupported scenario and only occurs when marshalling fails.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions