tag 468992 patch pending
severity 468992 serious
thanks
Hi,
the bug exists, attached is a patch that removes the crashing.
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-adns-1.1.0/adnsmodule.c python-adns-1.1.0/adnsmodule.c
--- python-adns-1.1.0/adnsmodule.c
+++ python-adns-1.1.0/adnsmodule.c
@@ -686,7 +686,7 @@
{
ADNS_Stateobject *self;
- self = PyObject_NEW(ADNS_Stateobject, &ADNS_Statetype);
+ self = PyObject_New(ADNS_Stateobject, &ADNS_Statetype);
if (self == NULL)
return NULL;
self->state = NULL;
@@ -701,7 +701,7 @@
adns_finish(self->state);
Py_END_ALLOW_THREADS;
Py_INCREF(Py_None);
- PyMem_DEL(self);
+ PyObject_Del(self);
}
static char ADNS_Statetype__doc__[] =
@@ -890,7 +890,7 @@
{
ADNS_Queryobject *self;
- self = PyObject_NEW(ADNS_Queryobject, &ADNS_Querytype);
+ self = PyObject_New(ADNS_Queryobject, &ADNS_Querytype);
if (self == NULL)
return NULL;
Py_INCREF(state);
@@ -912,7 +912,7 @@
Py_XDECREF(self->exc_type);
Py_XDECREF(self->exc_value);
Py_XDECREF(self->exc_traceback);
- PyMem_DEL(self);
+ PyObject_Del(self);
}
static char ADNS_Querytype__doc__[] =
diff -u python-adns-1.1.0/debian/changelog python-adns-1.1.0/debian/changelog
--- python-adns-1.1.0/debian/changelog
+++ python-adns-1.1.0/debian/changelog
@@ -1,3 +1,10 @@
+python-adns (1.1.0-3.1) unstable; urgency=low
+
+ * Non-maintainer upload.
+ * Fix use of python memory functions. Closes: #468992
+
+ -- Thomas Viehmann <[EMAIL PROTECTED]> Tue, 04 Mar 2008 20:44:20 +0100
+
python-adns (1.1.0-3) unstable; urgency=low
* New maintainer (closes: #379683).