U
Uwe Mayer
Hi,
I am wrapping a C function returning large amount of binary data back to
Python using SWIG.
I have the data malloc()ed or new()ed on the heap and buffer objects seem a
good way to wrap it in python
(http://docs.python.org/api/bufferObjects.html)
From the documentation it seems PyBuffer_FromReadWriteObject() will not
release the allocated shared memory. How do I prevent a memory leak in this
case?
Thanks,
Ciao
Uwe
I am wrapping a C function returning large amount of binary data back to
Python using SWIG.
I have the data malloc()ed or new()ed on the heap and buffer objects seem a
good way to wrap it in python
(http://docs.python.org/api/bufferObjects.html)
From the documentation it seems PyBuffer_FromReadWriteObject() will not
release the allocated shared memory. How do I prevent a memory leak in this
case?
Thanks,
Ciao
Uwe