Skip to content

Commit 884fb09

Browse files
committed
Merge pull request #25 from plamentotev/fix_potential_resource_leak
Fix potential resource leak in ConcurrentJarCreator
2 parents 2fd8b5e + 6bc7d8a commit 884fb09

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/org/codehaus/plexus/archiver/zip/ConcurrentJarCreator.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ public void writeTo(ZipArchiveOutputStream targetStream) throws IOException, Exe
121121
long startAt = System.currentTimeMillis();
122122
targetStream.close();
123123
zipCloseElapsed = System.currentTimeMillis() - startAt;
124+
metaInfDir.close();
124125
manifest.close();
125126
directories.close();
126127
synchronousEntries.close();

0 commit comments

Comments
 (0)