Kaydet (Commit) 5f322d3d authored tarafından Tim Peters's avatar Tim Peters

SF bug 684667: Modules/selectmodule.c returns NULL without exception set.

select_select() didn't set an exception in the SELECT_USES_HEAP case when
malloc() returned NULL.
üst 9af48ff4
......@@ -248,7 +248,7 @@ select_select(PyObject *self, PyObject *args)
if (rfd2obj) PyMem_DEL(rfd2obj);
if (wfd2obj) PyMem_DEL(wfd2obj);
if (efd2obj) PyMem_DEL(efd2obj);
return NULL;
return PyErr_NoMemory();
}
#endif /* SELECT_USES_HEAP */
/* Convert lists to fd_sets, and get maximum fd number
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment