[issue10383] test_os leaks under Windows

Amaury Forgeot d'Arc report at bugs.python.org
Thu Nov 11 18:01:31 CET 2010

Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:

This looks suspect (in function posix_write)::

    if (!PyArg_ParseTuple(args, "iy*:write", &fd, &pbuf))
        return NULL;
    if (!_PyVerify_fd(fd))
        return posix_error();

I'd prefer a "PyBuffer_Release(&pbuf);" before returning...
Many other occurrences of _PyVerify_fd have this issue.


Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list