Lewis John McGibbney created GORA-440:
-----------------------------------------

             Summary: Fix several instances of 'Method may fail to close 
stream' within gora-accumulo BinaryEncoder
                 Key: GORA-440
                 URL: https://issues.apache.org/jira/browse/GORA-440
             Project: Apache Gora
          Issue Type: Bug
          Components: gora-accumulo
    Affects Versions: 0.6.1
            Reporter: Lewis John McGibbney
            Assignee: Lewis John McGibbney
             Fix For: 0.7


A number of methods within the BinaryEncoder class create 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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to