Fix a potential NPE

This commit is contained in:
Nikolay Fedorovskikh 2017-07-31 23:35:36 +05:00 committed by Norman Maurer
parent 21b7ab1f25
commit 068e64dbcf

View File

@ -204,7 +204,7 @@ public class FastLzFrameDecoder extends ByteToMessageDecoder {
currentState = State.INIT_BLOCK;
success = true;
} finally {
if (!success) {
if (!success && uncompressed != null) {
uncompressed.release();
}
}