From 3933fee89cdef27c1a4ef036e9dc260b7ded73a6 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Tue, 23 Jun 2015 07:13:49 -0700 Subject: [PATCH] We still need to close fout here. --- src/main/java/com/threerings/getdown/tools/Patcher.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/threerings/getdown/tools/Patcher.java b/src/main/java/com/threerings/getdown/tools/Patcher.java index 777a73c..cfcd766 100644 --- a/src/main/java/com/threerings/getdown/tools/Patcher.java +++ b/src/main/java/com/threerings/getdown/tools/Patcher.java @@ -149,6 +149,8 @@ public class Patcher FileOutputStream fout = null; try { StreamUtil.copy(in = file.getInputStream(entry), fout = new FileOutputStream(patch)); + StreamUtil.close(fout); + fout = null; // move the current version of the jar to .old if (!FileUtil.renameTo(target, otarget)) {