Commit 24dfb784 authored by Stefan Behnel's avatar Stefan Behnel

fix assertion crash in Py3 debug builds by avoiding overly aggressive reference reuse

parent 7a3407c5
......@@ -1177,8 +1177,8 @@ static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObjec
PyObject* args = PyTuple_New(1);
if (unlikely(!args)) return NULL;
PyTuple_SET_ITEM(args, 0, arg);
Py_INCREF(arg);
result = __Pyx_PyObject_Call(func, args, NULL);
PyTuple_SET_ITEM(args, 0, NULL);
Py_DECREF(args);
return result;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment