Fix memory leak in ByteVector