sraSpanRemove(sraSpan *span) {
  if(span) {
    span->_prev->_next = span->_next;
    span->_next->_prev = span->_prev;
  }
}
A NULL pointer dereference occurs when the application dereferences a pointer that it expects to be valid, but is NULL, typically causing a crash or exit.