fixed resource leak: ByteBuf.release() was not called before it's
garbage-collected