gitblit/gitblit — pull request #113 by fzs (2013-08-21 13:14:40+00:00)
Title: Close streams in finally block.

The FileUtils use input and output streams which are closed within the try block instead of a finally block. This patch moves the close into a finally block to make sure that system resources get freed.

Just as a comment, one may want to revisit the class and change the catching of Throwables to catching Exceptions instead, as Errors should usually not be caught by an application.