]> source.dussan.org Git - jgit.git/commit
Always close the GZIPOutputStream to release Deflater 14/4714/1
authorShawn O. Pearce <spearce@spearce.org>
Thu, 1 Dec 2011 01:17:59 +0000 (17:17 -0800)
committerShawn O. Pearce <spearce@spearce.org>
Thu, 1 Dec 2011 01:45:41 +0000 (17:45 -0800)
commit0d61707f12b5b1a94b325fc8c2975a9e60a14dac
tree38616634067dda94e08944faca52753268d5ac4f
parentcea935ab1b6caf52b31dfd4eae9696dfcc0593a2
Always close the GZIPOutputStream to release Deflater

The stream must be closed to ensure the native resources associated
with its internal Deflater instance are cleaned up early, instead of
waiting for GC to identify the dead object and finialize it.

Change-Id: Ic31b5df563f19404ed4682556999f4332aa61562
org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/SmartOutputStream.java