Mercurial > cpython-lru_cache-weakref
diff Modules/selectmodule.c @ 27815:cb1eeaeb74a0 legacy-trunk
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.
| author | Tim Peters <tim.peters@gmail.com> |
|---|---|
| date | Tue, 11 Feb 2003 17:18:58 +0000 |
| parents | e270c0d41a05 |
| children | fb557ac5bb9a a430be683a7a |
line wrap: on
line diff
--- a/Modules/selectmodule.c Tue Feb 11 17:12:46 2003 +0000 +++ b/Modules/selectmodule.c Tue Feb 11 17:18:58 2003 +0000 @@ -248,7 +248,7 @@ 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
