forked from I2P_Developers/i2p.i2p
clear buf before releasing
This commit is contained in:
@ -471,6 +471,7 @@ class EventPumper implements Runnable {
|
|||||||
* High-frequency path in thread.
|
* High-frequency path in thread.
|
||||||
*/
|
*/
|
||||||
public static void releaseBuf(ByteBuffer buf) {
|
public static void releaseBuf(ByteBuffer buf) {
|
||||||
|
buf.clear();
|
||||||
_bufferCache.release(buf);
|
_bufferCache.release(buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user