[Python-checkins] CVS: python/dist/src/Modules _cursesmodule.c,2.64,2.65

Michael Hudson mwh@users.sourceforge.net
Wed, 30 Jan 2002 07:39:30 -0800


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

Modified Files:
	_cursesmodule.c 
Log Message:
I think this fixes

[ #510644 ] test_curses segfaults

If we use the *object* *allocator*, we should use the *object* *deallocator*,
not the *raw memory* deallocator (confused yet?).

I think this was what caused segfaults when pymalloc was enabled.

Even if it wasn't the cause, it's still wrong.

2.2.1 candidate.



Index: _cursesmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/_cursesmodule.c,v
retrieving revision 2.64
retrieving revision 2.65
diff -C2 -d -r2.64 -r2.65
*** _cursesmodule.c	2002/01/17 23:08:27	2.64
--- _cursesmodule.c	2002/01/30 15:39:28	2.65
***************
*** 357,361 ****
  {
    if (wo->win != stdscr) delwin(wo->win);
!   PyMem_DEL(wo);
  }
  
--- 357,361 ----
  {
    if (wo->win != stdscr) delwin(wo->win);
!   PyObject_DEL(wo);
  }