[Python-checkins] python/dist/src/Modules selectmodule.c,2.72,2.73

tim_one@users.sourceforge.net tim_one@users.sourceforge.net
Tue, 11 Feb 2003 09:19:01 -0800


Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1:/tmp/cvs-serv1654/Modules

Modified Files:
	selectmodule.c 
Log Message:
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.


Index: selectmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/selectmodule.c,v
retrieving revision 2.72
retrieving revision 2.73
diff -C2 -d -r2.72 -r2.73
*** selectmodule.c	18 Nov 2002 16:02:29 -0000	2.72
--- selectmodule.c	11 Feb 2003 17:18:58 -0000	2.73
***************
*** 249,253 ****
  		if (wfd2obj) PyMem_DEL(wfd2obj);
  		if (efd2obj) PyMem_DEL(efd2obj);
! 		return NULL;
  	}
  #endif /* SELECT_USES_HEAP */
--- 249,253 ----
  		if (wfd2obj) PyMem_DEL(wfd2obj);
  		if (efd2obj) PyMem_DEL(efd2obj);
! 		return PyErr_NoMemory();
  	}
  #endif /* SELECT_USES_HEAP */