diff --git a/codec-http/src/main/java/io/netty/handler/codec/http/multipart/AbstractMemoryHttpData.java b/codec-http/src/main/java/io/netty/handler/codec/http/multipart/AbstractMemoryHttpData.java index 48453c4ec6..91d3e7c5fd 100644 --- a/codec-http/src/main/java/io/netty/handler/codec/http/multipart/AbstractMemoryHttpData.java +++ b/codec-http/src/main/java/io/netty/handler/codec/http/multipart/AbstractMemoryHttpData.java @@ -152,7 +152,10 @@ public abstract class AbstractMemoryHttpData extends AbstractHttpData { @Override public void delete() { - // nothing to do + if (byteBuf != null) { + byteBuf.release(); + byteBuf = null; + } } @Override