Fix buffer leak in AbstractMemoryHttpData
This commit is contained in:
parent
4116de8360
commit
3812b897e6
@ -149,7 +149,10 @@ public abstract class AbstractMemoryHttpData extends AbstractHttpData {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void delete() {
|
public void delete() {
|
||||||
// nothing to do
|
if (byteBuf != null) {
|
||||||
|
byteBuf.release();
|
||||||
|
byteBuf = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
x
Reference in New Issue
Block a user