audriusrudalevicius / evolutionchamber

Automatically exported from code.google.com/p/evolutionchamber
0 stars 0 forks source link

com.fray.evo.util.EcAutoUpdate.findLatestVersion(String) may fail to close stream #216

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Bug: com.fray.evo.util.EcAutoUpdate.findLatestVersion(String) may fail to close 
stream
Pattern id: OS_OPEN_STREAM, type: OS, category: BAD_PRACTICE

The method creates an IO stream object, does not assign it to any fields, pass 
it to other methods that might close it, or return it, and does not appear to 
close the stream on all paths out of the method.  This may result in a file 
descriptor leak.  It is generally a good idea to use a finally block to ensure 
that streams are closed.

Original issue reported on code.google.com by netpr...@gmail.com on 20 Jul 2011 at 8:12

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r296.

Original comment by netpr...@gmail.com on 20 Jul 2011 at 8:13