how to free PyArg_Parse'd args?

Robert Nikander nikander at mindspring.com
Wed Dec 19 12:05:32 EST 2001


Hello all,

If I create a C extension class with a member char * name, and
I get the name initially from a PyArg_ParseTuple(args, 's'...), 
Who should I call to free it when the objects tp_dealloc slot is called?
I am trying PyMem_Del/Free( obj->name ) but am getting a seg fault.

Thanks for any help,
Rob



More information about the Python-list mailing list