code: public static void releaseBufferArray(WsByteBuffer[] list) {
          if (null == list) {
              return;
          }
          for (int i = 0; i < list.length; i++) {
              if (null != list[i]) {
                  list[i].release();
                  list[i] = null;
              }
          }
      }
docs: Helper function to release the buffers stored in a list. It will null
  out the buffer references in the list as it releases them.
  
  @param list