fixed memory leak

This commit is contained in:
2025-02-22 13:57:38 +08:00
parent 619873c4a9
commit 72c34b57a6

View File

@@ -91,6 +91,7 @@ class InMemoryCacheHandler(
val buf = ctx.alloc().heapBuffer()
InflaterOutputStream(ByteBufOutputStream(buf)).use {
value.content.readBytes(it, value.content.readableBytes())
value.content.release()
buf.retain()
}
ctx.writeAndFlush(LastCacheContent(buf))