On Oct 13, 2007 7:05 PM, alexandre.vassalotti <[email protected]> wrote: > Author: alexandre.vassalotti > Date: Sun Oct 14 04:05:51 2007 > New Revision: 58455 > > > Modified: python/branches/py3k/Modules/posixmodule.c > ============================================================================== > --- python/branches/py3k/Modules/posixmodule.c (original) > +++ python/branches/py3k/Modules/posixmodule.c Sun Oct 14 04:05:51 2007 > @@ -2135,7 +2135,8 @@ > FILEFINDBUF3 ep; > APIRET rc; > > - if (!PyArg_ParseTuple(args, "t#:listdir", &name, &len)) > + if (!PyArg_ParseTuple(args, "et#:listdir", > + Py_FileSystemDefaultEncoding, &name, &len)) > return NULL;
I think this creates a memory leak. name needs to be deallocated when using et. See the section below for an example. n _______________________________________________ Python-3000-checkins mailing list [email protected] http://mail.python.org/mailman/listinfo/python-3000-checkins
