We still need to close fout here.

This commit is contained in:
Michael Bayne
2015-06-23 07:13:49 -07:00
parent effee62d26
commit 3933fee89c
@@ -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)) {