[#1507] Fix buffer leak in WebSocket08FrameDecoder
This commit is contained in:
parent
ec5e793a2f
commit
a4ee2841be
@ -288,6 +288,7 @@ public class WebSocket08FrameDecoder extends ReplayingDecoder<WebSocket08FrameDe
|
|||||||
framePayload = payloadBuffer;
|
framePayload = payloadBuffer;
|
||||||
} else if (payloadBuffer != null) {
|
} else if (payloadBuffer != null) {
|
||||||
framePayload.writeBytes(payloadBuffer);
|
framePayload.writeBytes(payloadBuffer);
|
||||||
|
payloadBuffer.release();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Unmask data if needed
|
// Unmask data if needed
|
||||||
|
Loading…
Reference in New Issue
Block a user