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

mwh at users.sourceforge.net mwh at users.sourceforge.net
Wed Aug 4 16:33:30 CEST 2004


Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32760

Modified Files:
	_cursesmodule.c 
Log Message:
Fix a leak of a reference on None.


Index: _cursesmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/_cursesmodule.c,v
retrieving revision 2.72
retrieving revision 2.73
diff -C2 -d -r2.72 -r2.73
*** _cursesmodule.c	13 Aug 2003 23:08:11 -0000	2.72
--- _cursesmodule.c	4 Aug 2004 14:33:28 -0000	2.73
***************
*** 2285,2291 ****
    if (!PyArg_ParseTuple(args,"i;fd",&fd)) return NULL;
  
!   PyCursesCheckERR(typeahead( fd ), "typeahead");
!   Py_INCREF(Py_None);
!   return Py_None;
  }
  
--- 2285,2289 ----
    if (!PyArg_ParseTuple(args,"i;fd",&fd)) return NULL;
  
!   return PyCursesCheckERR(typeahead( fd ), "typeahead");
  }
  



More information about the Python-checkins mailing list