diff --git a/PyMe/_internal/pyarrow/src/arrow/python/numpy_convert.cc b/PyMe/_internal/pyarrow/src/arrow/python/numpy_convert.cc index 5fd2cb5..1e5d3f8 100644 --- a/PyMe/_internal/pyarrow/src/arrow/python/numpy_convert.cc +++ b/PyMe/_internal/pyarrow/src/arrow/python/numpy_convert.cc @@ -395,7 +395,6 @@ Status SparseCSFTensorToNdarray(const std::shared_ptr& sparse_t PyObject* item; RETURN_NOT_OK(TensorToNdarray(sparse_index.indptr()[i], base, &item)); if (PyList_SetItem(indptr.obj(), i, item) < 0) { - Py_XDECREF(item); RETURN_IF_PYERROR(); } } @@ -403,7 +402,6 @@ Status SparseCSFTensorToNdarray(const std::shared_ptr& sparse_t PyObject* item; RETURN_NOT_OK(TensorToNdarray(sparse_index.indices()[i], base, &item)); if (PyList_SetItem(indices.obj(), i, item) < 0) { - Py_XDECREF(item); RETURN_IF_PYERROR(); } }