[Python-3000-checkins] r58455 - in python/branches/py3k: Modules/_sre.c Modules/posixmodule.c Objects/unicodeobject.c Python/getargs.c
Neal Norwitz
nnorwitz at gmail.com
Sun Oct 14 04:22:51 CEST 2007
On Oct 13, 2007 7:05 PM, alexandre.vassalotti
<python-3000-checkins at python.org> 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
More information about the Python-3000-checkins
mailing list