how to free memory allocated by a function call via ctypes
Tzury Bar Yochay
Afro.Systems at gmail.com
Sat May 30 16:16:15 EDT 2009
Hi,
Suppose I have the following function
char *generateMessage(char *sender, char *reciever, char *message) ;
now in c I would normally do
char *msg = generateMessage(sender, reciever, message);
// do something
free(msg);
My question is how do I free the memory allocated when I call this
function using ctypes
I could not find this in the documentation for python 2.5
thanks
More information about the Python-list
mailing list