mirror of https://github.com/python/cpython
Issue #24017: Plug ref leak.
This commit is contained in:
parent
688cd4e6cb
commit
1dde177f82
|
@ -655,12 +655,10 @@ sys_set_coroutine_wrapper(PyObject *self, PyObject *wrapper)
|
|||
Py_TYPE(wrapper)->tp_name);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
PyEval_SetCoroutineWrapper(wrapper);
|
||||
}
|
||||
else
|
||||
PyEval_SetCoroutineWrapper(NULL);
|
||||
Py_INCREF(Py_None);
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue