kelloggm opened a new pull request #1638:
URL: https://github.com/apache/zookeeper/pull/1638


   Bug report is here: https://issues.apache.org/jira/browse/ZOOKEEPER-4246
   
   This fix is simple: it just closes the possibly-leaked streams and re-throws 
the exception. We can't use a try-with-resources or a `finally` block here 
because in the happy case the resulting streams need to be returned open. I 
checked each of the other constructor calls in these methods, and none of the 
others can throw an exception as far as I can tell.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to