Fix potential leak in HttpContentEncoder
This commit is contained in:
parent
b7a7c33fe3
commit
4d44b37939
@ -276,6 +276,7 @@ public abstract class HttpContentEncoder extends MessageToMessageCodec<HttpReque
|
||||
break;
|
||||
}
|
||||
if (!buf.isReadable()) {
|
||||
buf.release();
|
||||
continue;
|
||||
}
|
||||
out.add(new DefaultHttpContent(buf));
|
||||
|
Loading…
Reference in New Issue
Block a user