Message294851
I'm using the following code
PyObject *
get_memoryview (PyObject *self) {
Py_buffer view;
...
// this takes a ref on self
if (PyBuffer_FillInfo (&view, self, buffer, length, 0, 0) < 0)
return NULL;
// this returns a <memory> object
return PyMemoryView_FromBuffer (&view);
}
The problem is that when I call release() on the returned memory object
the buffer does not get release and as a result the exporter leaks.
Am I missing something or is this a bug? |
|
Date |
User |
Action |
Args |
2017-05-31 16:35:05 | lazka | set | recipients:
+ lazka |
2017-05-31 16:35:05 | lazka | set | messageid: <1496248505.52.0.454625386469.issue30527@psf.upfronthosting.co.za> |
2017-05-31 16:35:05 | lazka | link | issue30527 messages |
2017-05-31 16:35:05 | lazka | create | |
|