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
FD leaks in aifc module #60689
Comments
Aifc_write.close() can raise exception and left the internal file object not closed. The patch closes the file object even in case of error and reset _file to None even in case of the file object close() raises an exception, so that Aifc_write.close() can be called repeatedly. |
Adding "with" support to Aifc_write looks like a new feature, but Aifc_write doesn't seem to be part of the public API. Does this change (indirectly) add "with" support to any part of the public API? |
Sorry, I miss that test_close() already exists. Merged. |
Don't pay attention, it was a wrong patch. For "with" support see bpo-16486. |
If no one objects I will commit this next year. |
Looks good to me, except: |
Of course. Thanks for point. It's my editor made wrong whitespace changes after block indent/unindent. "hg diff" shows this changes and I shouldn't miss this. I will review every patch before commit one more time. |
New changeset cf8d692cc847 by Serhiy Storchaka in branch '2.7': New changeset e3c4e9f4ea0f by Serhiy Storchaka in branch '3.2': New changeset 9a571c4a16d1 by Serhiy Storchaka in branch '3.3': New changeset 79a8f6e1dfb0 by Serhiy Storchaka in branch 'default': |
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: