Skip to content

Commit 6bc7d8a

Browse files
committed
Fix potential resource leak in ConcurrentJarCreator
1 parent 2fd8b5e commit 6bc7d8a

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)