[Python-checkins] CVS: python/dist/src/Modules _cursesmodule.c,2.61,2.61.6.1 _curses_panel.c,1.8,1.8.6.1
Michael Hudson
mwh@users.sourceforge.net
Wed, 06 Feb 2002 09:11:53 -0800
Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv8213/Modules
Modified Files:
Tag: release22-maint
_cursesmodule.c _curses_panel.c
Log Message:
Backport my fixing up of PyObject_New/PyMem_Del mismatches.
Index: _cursesmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/_cursesmodule.c,v
retrieving revision 2.61
retrieving revision 2.61.6.1
diff -C2 -d -r2.61 -r2.61.6.1
*** _cursesmodule.c 2001/12/08 18:02:54 2.61
--- _cursesmodule.c 2002/02/06 17:11:51 2.61.6.1
***************
*** 361,365 ****
{
if (wo->win != stdscr) delwin(wo->win);
! PyMem_DEL(wo);
}
--- 361,365 ----
{
if (wo->win != stdscr) delwin(wo->win);
! PyObject_DEL(wo);
}
Index: _curses_panel.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/_curses_panel.c,v
retrieving revision 1.8
retrieving revision 1.8.6.1
diff -C2 -d -r1.8 -r1.8.6.1
*** _curses_panel.c 2001/12/08 18:02:54 1.8
--- _curses_panel.c 2002/02/06 17:11:51 1.8.6.1
***************
*** 194,198 ****
Py_DECREF(po->wo);
remove_lop(po);
! PyMem_DEL(po);
}
--- 194,198 ----
Py_DECREF(po->wo);
remove_lop(po);
! PyObject_DEL(po);
}