netty5/buffer
Norman Maurer 8f13e333dd Always return a real slice even when the length is 0
Motivation:

We need to always return a real slice even when the requested length is 0. This is needed as otherwise we not correctly share the reference count and so may leak a buffer if the user call release() on the returned slice and expect it to decrement the reference count of the "parent" buffer.

Modifications:

- Always return a real slice
- Add unit test for the bug.

Result:

No more leak possible when a user requests a slice of length 0 of a SlicedByteBuf.
2015-10-16 20:46:05 +02:00
..
src Always return a real slice even when the length is 0 2015-10-16 20:46:05 +02:00
pom.xml [maven-release-plugin] prepare for next development iteration 2015-10-02 09:03:29 +02:00