Skip to content

Possible memory leak in error cases in JVM-Rust (and vice versa) transition #3532

@rluvaton

Description

@rluvaton

Looking at the code, it seems like there might be a memory leak when there are errors, probably there are more

let array_data = ArrayData::from_spark((array_ptr, schema_ptr))?;

I think there should be some more robust way to handle arrow over FFI that avoid memory leaks (maybe move all JNI arrow stuff behind a guard that on drop will release the memory or calling to_owned will take the memory)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions