]> granicus.if.org Git - python/commitdiff
Issue #24017: Plug ref leak.
authorYury Selivanov <yselivanov@sprymix.com>
Tue, 12 May 2015 15:30:14 +0000 (11:30 -0400)
committerYury Selivanov <yselivanov@sprymix.com>
Tue, 12 May 2015 15:30:14 +0000 (11:30 -0400)
Python/sysmodule.c

index bf9a96fb75a4ec94eb423a40b0e2126dbad3855f..5f7c0ebba6311586ad61c72b60e9b86f263d6d1f 100644 (file)
@@ -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;
 }