fixed memory leak

This commit is contained in:
woggioni committed 2025-02-22 15:25:41 +08:00
1 parent 619873c4a9
commit 72c34b57a6
1 file changed
+1
@@ -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))