Skip to content

Leaking of C++ objects if they are constructed with a python function #1278

Open
@yeganer

Description

@yeganer

Issue description

C++ objects that take a python function as argument are not properly deleted. The issue seems to be that the Python garbage collector cannot break the reference cycle. I hope the example code illustrates the issue well. If there are any questions, you can also find me in the gitter.

Reproducible example code

yeganer/pybind11@d27b39e:test

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