Skip to content

Fix file descriptor leak in the digest method with a File argument. #1

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
Nov 25, 2012

Conversation

craig-ludington
Copy link
Contributor

This wraps with-open around the FileInputStream constructor
in the digest method taking a File as an argument.

…aking a File as an argument.

I don't know how to write a test for the file descriptor leak -- without looking at a /proc filesystem,
or parsing the output of lsof.

I've tested this at the REPL and it works (and fixes a nasty file descriptor leak in my own program).
tebeka added a commit that referenced this pull request Nov 25, 2012
Fix file descriptor leak in the digest method with a File argument.
@tebeka tebeka merged commit 3e4ec09 into clj-commons:master Nov 25, 2012
@tebeka
Copy link
Collaborator

tebeka commented Nov 25, 2012

Merged, in 1.4.1. Thanks!

tebeka added a commit that referenced this pull request Jun 16, 2016
Fix file descriptor leak in the digest method with a File argument.
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