Fix reference leak in PyInit_select() of the select module:
remove Py_INCREF(poll_Type).
--- /dev/null
+Fix reference leak in the :mod:`select` module when the the module is
+imported in a subinterpreter.
if (poll_Type == NULL)
return NULL;
get_select_state(m)->poll_Type = (PyTypeObject *)poll_Type;
- Py_INCREF(poll_Type);
PyModule_AddIntMacro(m, POLLIN);
PyModule_AddIntMacro(m, POLLPRI);
if (devpoll_Type == NULL)
return NULL;
get_select_state(m)->devpoll_Type = (PyTypeObject *)devpoll_Type;
- Py_INCREF(devpoll_Type);
#endif
#ifdef HAVE_EPOLL