New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test_os leaks under Windows #54592
Comments
Y:\>py3k\svn\PCbuild\python_d.exe -m test.regrtest -R 3:2 test_os |
This leaks one reference every time: |
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... |
I agree that the buffer should be released. The patch fixes this leak |
Fixed original leaks in r86804, r86806 and r86804. Fixed additional leaks in r86829. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: