Fix potential leak in HttpContentEncoder

This commit is contained in:
Trustin Lee 2013-07-11 01:10:52 +09:00
parent b7a7c33fe3
commit 4d44b37939

View File

@ -276,6 +276,7 @@ public abstract class HttpContentEncoder extends MessageToMessageCodec<HttpReque
break;
}
if (!buf.isReadable()) {
buf.release();
continue;
}
out.add(new DefaultHttpContent(buf));