how to free memory allocated by a function call via ctypes

Benjamin Peterson benjamin at python.org
Sat May 30 16:49:34 EDT 2009


Tzury Bar Yochay <Afro.Systems <at> gmail.com> writes:
> 
> My question is how do I free the memory allocated when I call this
> function using ctypes

The return type of ctypes.create_string_buffer() will call free() when it is
garbage collected.







More information about the Python-list mailing list