See comment https://github.com/pythonnet/pythonnet/pull/1365#discussion_r563113641 This happens because `PyCapsule_New` does not get any destructor.