severity 469002 serious
tag 469002 patch pending
thanks

Hi Matthias,

and here is another of these NMU diffs.

This one fixes
 python -c "import _rl_accel ; a = _rl_accel.Box(1) ; del a"

extrapolating from our conversation on the previous NMUs, I'll just upload this one right away.

Kind regards

T.
--
Thomas Viehmann, http://thomas.viehmann.net/
diff -u reportlab-accel-0.61-20080128/debian/changelog reportlab-accel-0.61-20080128/debian/changelog
--- reportlab-accel-0.61-20080128/debian/changelog
+++ reportlab-accel-0.61-20080128/debian/changelog
@@ -1,3 +1,11 @@
+reportlab-accel (0.61-20080128-1.1) unstable; urgency=high
+
+  * Non-maintainer upload.
+  * Fix mismatched Python API memory handling calls.
+    Closes: #469002
+
+ -- Thomas Viehmann <[EMAIL PROTECTED]>  Wed, 05 Mar 2008 22:52:16 +0100
+
 reportlab-accel (0.61-20080128-1) unstable; urgency=low
 
   * New upstream version.
only in patch2:
unchanged:
--- reportlab-accel-0.61-20080128.orig/rl_accel/_rl_accel.c
+++ reportlab-accel-0.61-20080128/rl_accel/_rl_accel.c
@@ -1360,7 +1360,7 @@
 
 static void BoxFree(BoxObject* self)
 {
-	PyMem_DEL(self);
+	PyObject_Del(self);
 }
 
 static int Box_set_int(char* name, int* pd, PyObject *value)
@@ -1492,7 +1492,7 @@
 	double		w;
 
 	if(!PyArg_ParseTupleAndKeywords(args,kw,"d|O:Box",kwlist,&w,&pC)) return NULL;
-	if(!(self = PyObject_NEW(BoxObject, &BoxType))) return NULL;
+	if(!(self = PyObject_New(BoxObject, &BoxType))) return NULL;
 	self->shrink = self->stretch = self->penalty = (double)(self->is_glue = self->is_penalty = self->flagged = 0);
 	self->is_box = 1;
 	self->width = w;

Reply via email to