Description
When I use custom FeedableBodyGenerator or SimpleFeedableBodyGenerator I see the next error message:
[error] i.n.u.ResourceLeakDetector - LEAK: ByteBuf.release() was not called before it's garbage-collected. Enable advanced leak reporting to find out where the leak occurred. To enable advanced leak reporting, specify the JVM option '-Dio.netty.leakDetection.level=advanced' or call ResourceLeakDetector.setLevel() See http://netty.io/wiki/reference-counted-objects.html for more information.
I guess the main problem is here:
https://github.com/netty/netty/blob/4.0/transport/src/main/java/io/netty/channel/AbstractChannelHandlerContext.java#L990-L992
they just assign null to message, but should also call 'release' (ReferenceCountUtil.release(msg);)
Am I right?