From: Michael W. Hudson Date: Wed, 6 Feb 2002 17:11:51 +0000 (+0000) Subject: Backport my fixing up of PyObject_New/PyMem_Del mismatches. X-Git-Tag: v2.2.1c1~214 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=31df2c36ee2b9abdf0ac75fa1fc910d7d40b00eb;p=thirdparty%2FPython%2Fcpython.git Backport my fixing up of PyObject_New/PyMem_Del mismatches. --- diff --git a/Modules/_curses_panel.c b/Modules/_curses_panel.c index 11bf5c8ff4c0..801d3e294cc1 100644 --- a/Modules/_curses_panel.c +++ b/Modules/_curses_panel.c @@ -193,7 +193,7 @@ PyCursesPanel_Dealloc(PyCursesPanelObject *po) (void)del_panel(po->pan); Py_DECREF(po->wo); remove_lop(po); - PyMem_DEL(po); + PyObject_DEL(po); } /* panel_above(NULL) returns the bottom panel in the stack. To get diff --git a/Modules/_cursesmodule.c b/Modules/_cursesmodule.c index 5a7a642691dc..9ad76bd89137 100644 --- a/Modules/_cursesmodule.c +++ b/Modules/_cursesmodule.c @@ -360,7 +360,7 @@ static void PyCursesWindow_Dealloc(PyCursesWindowObject *wo) { if (wo->win != stdscr) delwin(wo->win); - PyMem_DEL(wo); + PyObject_DEL(wo); } /* Addch, Addstr, Addnstr */