From 1dde177f826682668661eaf743926c6df70166f3 Mon Sep 17 00:00:00 2001 From: Yury Selivanov Date: Tue, 12 May 2015 11:30:14 -0400 Subject: Issue #24017: Plug ref leak. --- Python/sysmodule.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/Python/sysmodule.c b/Python/sysmodule.c index bf9a96f..5f7c0eb 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; } -- cgit v0.12