void TRI_FreeGeneralCursor (TRI_general_cursor_t* cursor) { if (cursor->_extra != NULL) { TRI_FreeJson(TRI_UNKNOWN_MEM_ZONE, cursor->_extra); } TRI_FreeCursorResult(cursor->_result); TRI_DestroySpin(&cursor->_lock); TRI_Free(TRI_UNKNOWN_MEM_ZONE, cursor); LOG_TRACE("destroyed general cursor"); }
void TRI_FreeGeneralCursor (TRI_general_cursor_t* cursor) { if (cursor->_deleted) { return; } cursor->_deleted = true; TRI_FreeCursorResult(cursor->_result); TRI_DestroyMutex(&cursor->_lock); TRI_Free(TRI_UNKNOWN_MEM_ZONE, cursor); LOG_TRACE("destroyed general cursor"); }