From 7cac3d76bbe974cd3aa2f06fa03b7a11ffbb0377 Mon Sep 17 00:00:00 2001 From: Lachlan Roberts Date: Fri, 25 Sep 2020 23:49:46 +1000 Subject: [PATCH] Issue #5287 - close deflater on release if non-pooled entry Signed-off-by: Lachlan Roberts --- .../org/eclipse/jetty/util/compression/CompressionPool.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/jetty-util/src/main/java/org/eclipse/jetty/util/compression/CompressionPool.java b/jetty-util/src/main/java/org/eclipse/jetty/util/compression/CompressionPool.java index 34439d10895..be50b61ea3b 100644 --- a/jetty-util/src/main/java/org/eclipse/jetty/util/compression/CompressionPool.java +++ b/jetty-util/src/main/java/org/eclipse/jetty/util/compression/CompressionPool.java @@ -140,6 +140,10 @@ public abstract class CompressionPool extends AbstractLifeCycle close(); } } + else + { + close(); + } } @Override