Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The facts are: * `PyTuple_SetItem` steals its third argument [1]. * `hocobj_new` returns a new reference. * `cpp2refstr` returns a new reference. In both cases the reason it leaks is that `hocobj_new` or `cpp2refstr` creates a new reference, then the reference count is increased once more. The once reference is stolen by `PyTuple_SetItem`; but there's still one INCREF which we can't pair up with a matching DECREF. [1]: https://docs.python.org/3.12/c-api/tuple.html#c.PyTuple_SetItem
- Loading branch information