CParaNdisCX::~CParaNdisCX() { if (m_ControlData.Virtual != nullptr) { ParaNdis_FreePhysicalMemory(m_Context, &m_ControlData); } }
void CParaNdisRX::FreeRxDescriptorsFromList() { while (!IsListEmpty(&m_NetReceiveBuffers)) { pRxNetDescriptor pBufferDescriptor = (pRxNetDescriptor)RemoveHeadList(&m_NetReceiveBuffers); ParaNdis_FreeRxBufferDescriptor(m_Context, pBufferDescriptor); } for (UINT i = 0; i < ARRAYSIZE(m_ReservedRxBufferMemory); i++) { if (m_ReservedRxBufferMemory[i].Virtual) { ParaNdis_FreePhysicalMemory(m_Context, &m_ReservedRxBufferMemory[i]); } } }