[Python-bugs-list] [ python-Bugs-684667 ] Modules/selectmodule.c returns NULL without exception set
SourceForge.net
noreply@sourceforge.net
Tue, 11 Feb 2003 07:34:09 -0800
Bugs item #684667, was opened at 2003-02-11 16:34
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=684667&group_id=5470
Category: Extension Modules
Group: Python 2.2.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Troels Walsted Hansen (troels)
Assigned to: Nobody/Anonymous (nobody)
Summary: Modules/selectmodule.c returns NULL without exception set
Initial Comment:
The "return NULL" statement below should read "return
PyErr_NoMemory()".
#ifdef SELECT_USES_HEAP
/* Allocate memory for the lists */
rfd2obj = PyMem_NEW(pylist, FD_SETSIZE + 1);
wfd2obj = PyMem_NEW(pylist, FD_SETSIZE + 1);
efd2obj = PyMem_NEW(pylist, FD_SETSIZE + 1);
if (rfd2obj == NULL || wfd2obj == NULL || efd2obj
== NULL) {
if (rfd2obj) PyMem_DEL(rfd2obj);
if (wfd2obj) PyMem_DEL(wfd2obj);
if (efd2obj) PyMem_DEL(efd2obj);
return NULL;
}
#endif /* SELECT_USES_HEAP */
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=684667&group_id=5470