summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorYury Selivanov <yselivanov@sprymix.com>2015-05-12 15:30:14 (GMT)
committerYury Selivanov <yselivanov@sprymix.com>2015-05-12 15:30:14 (GMT)
commit1dde177f826682668661eaf743926c6df70166f3 (patch)
tree9e7eb35336922e9743593b8e3f49e1e847359aee /Python
parent688cd4e6cbe5eb57eee76b396f3bf7b365b62499 (diff)
downloadcpython-1dde177f826682668661eaf743926c6df70166f3.zip
cpython-1dde177f826682668661eaf743926c6df70166f3.tar.gz
cpython-1dde177f826682668661eaf743926c6df70166f3.tar.bz2
Issue #24017: Plug ref leak.
Diffstat (limited to 'Python')
-rw-r--r--Python/sysmodule.c2
1 files changed, 0 insertions, 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;
}