tag 468994 patch pending
severity 468994 serious
thanks

Hi,

the bug exists, attached is a patch that removes the crashing, observable e.g. with python -c "import Numeric ; import RNG ; a = RNG.NormalDistribution(0,1) ; del a" It will be uploaded during the BSP next weekend unless you fix the bug first.

Kind regards

T.
--
Thomas Viehmann, http://thomas.viehmann.net/
diff -u python-numeric-24.2/debian/changelog 
python-numeric-24.2/debian/changelog
--- python-numeric-24.2/debian/changelog
+++ python-numeric-24.2/debian/changelog
@@ -1,3 +1,10 @@
+python-numeric (24.2-8.2) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Fix python memory handling. Closes: #468994
+
+ -- Thomas Viehmann <[EMAIL PROTECTED]>  Wed, 05 Mar 2008 09:55:17 +0100
+
 python-numeric (24.2-8.1) unstable; urgency=low
 
   * Non-maintainer upload.
only in patch2:
unchanged:
--- python-numeric-24.2.orig/Packages/RNG/Src/RNGmodule.c
+++ python-numeric-24.2/Packages/RNG/Src/RNGmodule.c
@@ -79,7 +79,7 @@
 {
        distributionobject *self;
 
-       self = PyObject_NEW(distributionobject, &distributiontype);
+       self = PyObject_New(distributionobject, &distributiontype);
        if (self == NULL)
                return NULL;
        self->density = NULL;
@@ -92,7 +92,7 @@
 dist_dealloc(distributionobject *self)
 {
        Py_XDECREF(self->parameters);
-       PyMem_DEL(self);
+       PyObject_Del(self);
 }
 
 
@@ -494,7 +494,7 @@
 {
        rngobject *self;
 
-       self = PyObject_NEW(rngobject, &rngtype);
+       self = PyObject_New(rngobject, &rngtype);
        if (self == NULL)
                return NULL;
        self->distribution = distribution;
@@ -522,7 +522,7 @@
 rng_dealloc(rngobject *self)
 {
        Py_DECREF(self->distribution);
-       PyMem_DEL(self);
+       PyObject_Del(self);
 }
 
 

Reply via email to