Package: newt
Version: 0.52.2-11.1

python-newt is currently broken with python2.5 because it uses PyMem_Del
(line 928 in snackmodule.c) on data it allocated with PyObject_NEW,
resulting in a crash when glibc detects that one tries to free an
invalid pointer. Replacing this call with PyObject_DEL makes the crash
go away.

Patch:

--- snackmodule.c.bak   2008-01-14 15:53:09.000000000 +0100
+++ snackmodule.c       2008-01-14 15:53:19.000000000 +0100
@@ -925,7 +925,7 @@
     Py_XDECREF (s->scs.cb);
     Py_XDECREF (s->scs.data);
 
-    PyMem_DEL(o);
+    PyObject_DEL(o);
 }
 
 static PyObject * widgetAddCallback(snackWidget * s, PyObject * args) {





-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to