Created originally on Bitbucket by mattip
-
test for `PyObject_GetBuffer
and
PyMemoryView_GET_BUFFER``, which leaked memory and held references -
add a finalizer for
CPyBuffer
, which required converting rpython's Buffer from using__slots__
to using_attr_
-
add a PyMemoryViewObject with a PyBuffer attached so that the call to
PyMemoryView_GET_BUFFER
does not leak a PyBuffer-sized piece of memory -
track down unmatched
Py_INCREF
usage when looking for a bf_releasebuffer function
Along the way I noticed that LeakCheckingTest has been disabled, and am wondering if we can re-enable it to speed up bug finding