Kaydet (Commit) 1dde177f authored tarafından Yury Selivanov's avatar Yury Selivanov

Issue #24017: Plug ref leak.

üst 688cd4e6
...@@ -655,12 +655,10 @@ sys_set_coroutine_wrapper(PyObject *self, PyObject *wrapper) ...@@ -655,12 +655,10 @@ sys_set_coroutine_wrapper(PyObject *self, PyObject *wrapper)
Py_TYPE(wrapper)->tp_name); Py_TYPE(wrapper)->tp_name);
return NULL; return NULL;
} }
PyEval_SetCoroutineWrapper(wrapper); PyEval_SetCoroutineWrapper(wrapper);
} }
else else
PyEval_SetCoroutineWrapper(NULL); PyEval_SetCoroutineWrapper(NULL);
Py_INCREF(Py_None);
Py_RETURN_NONE; Py_RETURN_NONE;
} }
......
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