File pyvorbis-1.5a-badfree.patch of Package python-vorbis
--- pyvorbis-1.5a.orig/src/pyvorbiscodec.c 2006-10-24 21:09:28.000000000 +0200
+++ pyvorbis-1.5a/src/pyvorbiscodec.c 2007-04-25 02:17:12.000000000 +0200
@@ -118,7 +118,7 @@
{
vorbis_dsp_clear(PY_DSP(self));
Py_XDECREF(((py_dsp *)self)->parent);
- PyMem_DEL(self);
+ PyObject_DEL(self);
}
static PyObject*
@@ -447,7 +447,7 @@
{
vorbis_block_clear(PY_BLOCK(self));
Py_XDECREF(((py_block *)self)->parent);
- PyMem_DEL(self);
+ PyObject_DEL(self);
}
static PyObject*
--- pyvorbis-1.5a.orig/src/pyvorbisfile.c 2006-10-24 21:09:28.000000000 +0200
+++ pyvorbis-1.5a/src/pyvorbisfile.c 2007-04-25 02:15:53.000000000 +0200
@@ -171,7 +171,7 @@
ret = py_ov_open(newobj, args);
if (ret == NULL) {
- PyMem_DEL(newobj);
+ PyObject_DEL(newobj);
return NULL;
}
--- pyvorbis-1.5a.orig/src/pyvorbisinfo.c 2006-10-24 21:09:28.000000000 +0200
+++ pyvorbis-1.5a/src/pyvorbisinfo.c 2007-04-25 02:15:52.000000000 +0200
@@ -134,7 +134,7 @@
static void
py_ov_info_dealloc(PyObject *self)
{
- PyMem_DEL(self);
+ PyObject_DEL(self);
}
#define CMP_RET(x) \
@@ -418,7 +418,7 @@
free(ovc_self->vc);
}
- PyMem_DEL(self);
+ PyObject_DEL(self);
}