Skip to content

lifetime issue in pybind #192

@noajshu

Description

@noajshu

Describe the issue

Trying to diagnose symptoms of a memory leak in the python interface and wondering if it's because we're returning C++ memory here:

return self.predicted_errors_buffer;

Note that pymatching returns the pybind array instead:
https://github.com/oscarhiggott/PyMatching/blob/c60642af5a5b342d633e2e2b818b9fdb9696e828/src/pymatching/sparse_blossom/driver/user_graph.pybind.cc#L200-L217

What version of the software are you using?

No response

How can the issue be reproduced?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions