Skip to content

Prevent sigve from leaking file descriptors. #139

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

Merged
merged 1 commit into from
Sep 12, 2014

Conversation

zaccone
Copy link
Contributor

@zaccone zaccone commented Sep 12, 2014

After using open() function it is important to always close the file
handler. There are 3 spots in sigver.py where files were opened and
never closed. Following commit introduces new function 'read_file' that
utilized 'with' keyword, hence ensuring the file will always be closed.

After using open() function it is important to always close the file
handler. There are 3 spots in sigver.py where files were opened and
never closed. Following commit introduces new function 'read_file' that
utilized 'with' keyword, hence ensuring the file will always be closed.
rohe pushed a commit that referenced this pull request Sep 12, 2014
Prevent sigve from leaking file descriptors.
@rohe rohe merged commit 5840047 into IdentityPython:master Sep 12, 2014
@zaccone zaccone deleted the fix-leaking-descriptors branch September 13, 2014 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants