code: private static void free(ByteBuffer buf) {
          Cleaner cleaner = ((DirectBuffer)buf).cleaner();
          if (cleaner != null) {
              cleaner.clean();
          }
      }
docs: Frees the memory for the given direct buffer