Skip to content

Memory ownership and lifecycle management between FORM and Phlex #392

@barnaliy

Description

@barnaliy

Proposed Fixes (Follow up from PR#379)

In form/root_storage/root_tbranch_container.cpp: Add a reset for the branch address to prevent invalid references.

In form/form_source.cpp: Update the logic to either free the memory after the copy or, preferably, transfer the pointer ownership to the Phlex framework. 

Safety Check: Ensure memory is freed even in cases where the data is read but not successfully passed to Phlex.

@aolivier23 , @pcanal , @barnaliy

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    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