[Python-checkins] cpython: Issue #24017: Plug ref leak.

yury.selivanov python-checkins at python.org
Tue May 12 17:30:34 CEST 2015


https://hg.python.org/cpython/rev/0dc3b61f1dfa
changeset:   95983:0dc3b61f1dfa
user:        Yury Selivanov <yselivanov at sprymix.com>
date:        Tue May 12 11:30:14 2015 -0400
summary:
  Issue #24017: Plug ref leak.

files:
  Python/sysmodule.c |  2 --
  1 files changed, 0 insertions(+), 2 deletions(-)


diff --git a/Python/sysmodule.c b/Python/sysmodule.c
--- a/Python/sysmodule.c
+++ b/Python/sysmodule.c
@@ -655,12 +655,10 @@
                          Py_TYPE(wrapper)->tp_name);
             return NULL;
         }
-
         PyEval_SetCoroutineWrapper(wrapper);
     }
     else
         PyEval_SetCoroutineWrapper(NULL);
-    Py_INCREF(Py_None);
     Py_RETURN_NONE;
 }
 

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list