[issue8926] getargs.c: release the buffer on error

2010-06-24 Thread STINNER Victor
STINNER Victor added the comment: Fixed in r82206 and r82207. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue8926] getargs.c: release the buffer on error

2010-06-06 Thread STINNER Victor
New submission from STINNER Victor : PyArg_ParseTuple("t") calls PyObject_GetBuffer() and then raise an error if arg->ob_type->tp_as_buffer->bf_releasebuffer is not NULL. I think that it should call PyBuffer_Release(&view) before raising the error, or simply check bf_releasebuffer before calli