patch-src_pyoggpacket_c 455 B

1234567891011121314151617
  1. $OpenBSD: patch-src_pyoggpacket_c,v 1.2 2011/05/31 09:30:43 dcoppa Exp $
  2. Fix memory allocation/deallocation for Python 2.5 and above
  3. (from Debian's patchset for python-ogg)
  4. --- src/pyoggpacket.c.orig Mon Oct 7 01:04:57 2002
  5. +++ src/pyoggpacket.c Tue Jun 1 15:38:26 2010
  6. @@ -60,7 +60,7 @@ py_ogg_packet_from_packet(ogg_packet *op)
  7. static void
  8. py_ogg_packet_dealloc(PyObject *self)
  9. {
  10. - PyMem_DEL(self);
  11. + PyObject_Del(self);
  12. }
  13. static PyObject*