Issue #24017: Plug ref leak.

This commit is contained in:
Yury Selivanov 2015-05-12 11:30:14 -04:00
parent 688cd4e6cb
commit 1dde177f82
1 changed files with 0 additions and 2 deletions

View 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;
}