summaryrefslogtreecommitdiff
path: root/Python/sysmodule.c
diff options
context:
space:
mode:
authorYury Selivanov <yselivanov@sprymix.com>2015-05-12 11:30:14 -0400
committerYury Selivanov <yselivanov@sprymix.com>2015-05-12 11:30:14 -0400
commit1dde177f826682668661eaf743926c6df70166f3 (patch)
tree9e7eb35336922e9743593b8e3f49e1e847359aee /Python/sysmodule.c
parent688cd4e6cbe5eb57eee76b396f3bf7b365b62499 (diff)
downloadcpython-git-1dde177f826682668661eaf743926c6df70166f3.tar.gz
Issue #24017: Plug ref leak.
Diffstat (limited to 'Python/sysmodule.c')
-rw-r--r--Python/sysmodule.c2
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;
}