[Python-Dev] possible memory leak on windows (valgrind report)

Neal Norwitz nnorwitz at gmail.com
Mon Sep 19 18:55:36 CEST 2005


On 9/19/05, Guido van Rossum <guido at python.org> wrote:
> 
> That patch doesn't make sense to me -- the "s" code to
> PyArg_ParseTuple doesn't return newly allocated memory, it just
> returns a pointer into a string object that is owned by the caller
> (really by the call machinery I suppose). Compare other places using
> PyArg_ParseTuple(args, "s:...").

"s"?  The format passed to ParseTuple is "et".  At least it is in the
patch I'm looking at.

n


More information about the Python-Dev mailing list