diff options
author | Michael W. Hudson <mwh@python.net> | 2002-01-30 15:39:28 (GMT) |
---|---|---|
committer | Michael W. Hudson <mwh@python.net> | 2002-01-30 15:39:28 (GMT) |
commit | 67fb0c370552bf68de32f565203570b31f8dbf51 (patch) | |
tree | 826c8475a212fa4f4843b7d97066d554c52a4ade /Modules | |
parent | c7dd34b5e73637733277b35092ed7c5a834cc0d3 (diff) | |
download | cpython-67fb0c370552bf68de32f565203570b31f8dbf51.zip cpython-67fb0c370552bf68de32f565203570b31f8dbf51.tar.gz cpython-67fb0c370552bf68de32f565203570b31f8dbf51.tar.bz2 |
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.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_cursesmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_cursesmodule.c b/Modules/_cursesmodule.c index e785e48..f819a9e 100644 --- a/Modules/_cursesmodule.c +++ b/Modules/_cursesmodule.c @@ -356,7 +356,7 @@ static void PyCursesWindow_Dealloc(PyCursesWindowObject *wo) { if (wo->win != stdscr) delwin(wo->win); - PyMem_DEL(wo); + PyObject_DEL(wo); } /* Addch, Addstr, Addnstr */ |