Fix buffer leaks in XmlFrameDecoderTest
This commit is contained in:
parent
502ccabab3
commit
457cd2f6fa
@ -155,6 +155,7 @@ public class XmlFrameDecoderTest {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
actual.add(buf.toString(CharsetUtil.UTF_8));
|
actual.add(buf.toString(CharsetUtil.UTF_8));
|
||||||
|
buf.release();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (cause != null) {
|
if (cause != null) {
|
||||||
@ -175,5 +176,4 @@ public class XmlFrameDecoderTest {
|
|||||||
byte[] buf = Files.readAllBytes(Paths.get(url.toURI()));
|
byte[] buf = Files.readAllBytes(Paths.get(url.toURI()));
|
||||||
return StandardCharsets.UTF_8.decode(ByteBuffer.wrap(buf)).toString();
|
return StandardCharsets.UTF_8.decode(ByteBuffer.wrap(buf)).toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user