netty5/codec/src
Idel Pivnitskiy 0cc3eccc2b Close ObjectInputStream in ObjectDecoder.decode(...)
Motivation:

We create a new CompactObjectInputStream with ByteBufInputStream in ObjectDecoder.decode(...) method and don't close this InputStreams before return statement.

Modifications:

Save link to the ObjectInputStream and close it before return statement.

Result:

Close InputStreams and clean up unused resources. It will be better for GC.
2014-07-20 09:23:35 +02:00
..
main/java/io/netty/handler/codec Close ObjectInputStream in ObjectDecoder.decode(...) 2014-07-20 09:23:35 +02:00
test Fix buffer leak in Bzip2EncoderTest 2014-07-19 14:41:18 +02:00