diff options
author | Yury Selivanov <yselivanov@sprymix.com> | 2015-05-12 11:30:14 -0400 |
---|---|---|
committer | Yury Selivanov <yselivanov@sprymix.com> | 2015-05-12 11:30:14 -0400 |
commit | 77a04205150a46220b09d9ef8106d0f5667e4558 (patch) | |
tree | c15effd2c1e7faa652ec4e303dfe408be20b4e7e /Python/sysmodule.c | |
parent | 4a37c26e067f68d05e2b8331e642d13dc74c9b3e (diff) | |
download | cpython-77a04205150a46220b09d9ef8106d0f5667e4558.tar.gz |
Issue #24017: Plug ref leak.
Diffstat (limited to 'Python/sysmodule.c')
-rw-r--r-- | Python/sysmodule.c | 2 |
1 files changed, 0 insertions, 2 deletions
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; } |