From 59a7919af6692918d6b81bce17bdbc42a77eea16 Mon Sep 17 00:00:00 2001 From: Dominik Stadler Date: Tue, 1 Jan 2019 20:10:58 +0000 Subject: [PATCH] Add missing revert() in OPCPackage to close Zip-streams always git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1850115 13f79535-47bb-0310-9956-ffa450edef68 --- src/ooxml/java/org/apache/poi/openxml4j/opc/OPCPackage.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ooxml/java/org/apache/poi/openxml4j/opc/OPCPackage.java b/src/ooxml/java/org/apache/poi/openxml4j/opc/OPCPackage.java index 9eaa7c3eae..f055f931dc 100644 --- a/src/ooxml/java/org/apache/poi/openxml4j/opc/OPCPackage.java +++ b/src/ooxml/java/org/apache/poi/openxml4j/opc/OPCPackage.java @@ -455,6 +455,9 @@ public abstract class OPCPackage implements RelationshipSource, Closeable { output.close(); } + // ensure all held resources are freed + revert(); + // Clear this.contentTypeManager.clearAll(); } -- 2.39.5