This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author amaury.forgeotdarc
Recipients amaury.forgeotdarc, brian.curtin, ocean-city, pitrou, rhettinger, tim.golden
Date 2010-11-11.17:01:28
SpamBayes Score 0.034435857
Marked as misclassified No
Message-id <1289494891.59.0.0860882319692.issue10383@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2010-11-11 17:01:31amaury.forgeotdarcsetrecipients: + amaury.forgeotdarc, rhettinger, pitrou, ocean-city, tim.golden, brian.curtin
2010-11-11 17:01:31amaury.forgeotdarcsetmessageid: <1289494891.59.0.0860882319692.issue10383@psf.upfronthosting.co.za>
2010-11-11 17:01:28amaury.forgeotdarclinkissue10383 messages
2010-11-11 17:01:28amaury.forgeotdarccreate