diff --git a/bindings/pyroot_experimental/PyROOT/src/TClonesArrayPyz.cxx b/bindings/pyroot_experimental/PyROOT/src/TClonesArrayPyz.cxx index 09888a4af6447d5ca8f1a718988e6bf5c4ff15ee..112c5d1c4aa544935dcf7b8ed102c1d6489f637a 100644 --- a/bindings/pyroot_experimental/PyROOT/src/TClonesArrayPyz.cxx +++ b/bindings/pyroot_experimental/PyROOT/src/TClonesArrayPyz.cxx @@ -83,6 +83,7 @@ static PyObject *PyStyleIndex(PyObject *self, PyObject *index) pyindex = PyLong_FromSsize_t(size + idx); } + // We transfer ownership to the caller, who needs to decref return pyindex; }