travisbrown/iteratee

Avoid resource leaks

travisbrown opened this issue · 1 comments

Right now in some of the FileModule read method implementations (for example), if a FileReader is instantiated successfully but then new BufferedReader(...) fails, the FileReader will not be closed.

This is kind of a corner case but it should be fixed.

Fixed in #121.