We still need to close fout here.
This commit is contained in:
@@ -149,6 +149,8 @@ public class Patcher
|
|||||||
FileOutputStream fout = null;
|
FileOutputStream fout = null;
|
||||||
try {
|
try {
|
||||||
StreamUtil.copy(in = file.getInputStream(entry), fout = new FileOutputStream(patch));
|
StreamUtil.copy(in = file.getInputStream(entry), fout = new FileOutputStream(patch));
|
||||||
|
StreamUtil.close(fout);
|
||||||
|
fout = null;
|
||||||
|
|
||||||
// move the current version of the jar to .old
|
// move the current version of the jar to .old
|
||||||
if (!FileUtil.renameTo(target, otarget)) {
|
if (!FileUtil.renameTo(target, otarget)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user