netty5/codec-http
Norman Maurer 48938e2d99
Fix memory leak in AbstractDiskHttpData when CompositeByteBuf is used (#10360)
Motivation:

AbstractDiskHttpData may cause a memory leak when a CompositeByteBuf is used. This happened because we may call copy() but actually never release the newly created ByteBuf.

Modifications:

- Remove copy() call and just use ByteBuf.getBytes(...) which will internally handle the writing to the FileChannel without any extra copies that need to be released later on.
- Add unit test

Result:

Fixes https://github.com/netty/netty/issues/10354
2020-06-22 13:54:20 +02:00
..
src Fix memory leak in AbstractDiskHttpData when CompositeByteBuf is used (#10360) 2020-06-22 13:54:20 +02:00
pom.xml [maven-release-plugin] prepare for next development iteration 2020-05-13 06:00:23 +00:00