]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Backport my fixing up of PyObject_New/PyMem_Del mismatches.
authorMichael W. Hudson <mwh@python.net>
Wed, 6 Feb 2002 17:11:51 +0000 (17:11 +0000)
committerMichael W. Hudson <mwh@python.net>
Wed, 6 Feb 2002 17:11:51 +0000 (17:11 +0000)
Modules/_curses_panel.c
Modules/_cursesmodule.c

index 11bf5c8ff4c00ad6d06bcadbca1fb98be358da3d..801d3e294cc149e15eeb9eadb4dc1bd692ea1b2a 100644 (file)
@@ -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
index 5a7a642691dcd758de507e69cbc6b730d8db998f..9ad76bd89137c069e9ca483c1bcdc48df98cd4ba 100644 (file)
@@ -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 */