From: Yury Selivanov Date: Tue, 12 May 2015 15:30:14 +0000 (-0400) Subject: Issue #24017: Plug ref leak. X-Git-Tag: v3.5.0b1~189 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1dde177f826682668661eaf743926c6df70166f3;p=python Issue #24017: Plug ref leak. --- diff --git a/Python/sysmodule.c b/Python/sysmodule.c index bf9a96fb75..5f7c0ebba6 100644 --- a/Python/sysmodule.c +++ b/Python/sysmodule.c @@ -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; }