[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>
<http://bugs.python.org/issue10383>
_______________________________________


More information about the Python-bugs-list mailing list