code: private void releasePendingMessage() {
          if (pendingMessage != null) {
              IRTMPEvent body = pendingMessage.getBody();
              if (body instanceof IStreamData && ((IStreamData<?>) body).getData() != null) {
                  ((IStreamData<?>) body).getData().free();
              }
              pendingMessage = null;
          }
      }
docs: Releases pending message body, nullifies pending message object