We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de81d6d commit 9539625Copy full SHA for 9539625
src/mod.c
@@ -135,9 +135,10 @@ static PyObject* run_stack_callback(PyObject* self, PyObject* args) {
135
PyTuple_SetItem(tup, 0, obj);
136
PyObject* result = PyObject_Call(func, tup, NULL);
137
if (!result) return NULL;
138
- PyObject_SetAttrString(obj, "freed", Py_NewRef(Py_True));
+ PyObject_SetAttrString(obj, "freed", Py_True);
139
140
- return Py_NewRef(result);
+ Py_INCREF(result);
141
+ return result;
142
}
143
144
static PyMethodDef methods[] = {
0 commit comments