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.