IopFreeRelationList

void __fastcall IopFreeRelationList(PVOID P){
  void *v1; 
  if( P )
  {
    v1 = *(void **)P;
    if( *(_QWORD *)P )
    {
      PiClearDeviceObjectList(*(_DWORD **)P);
      ExFreePoolWithTag(v1, 0);
      *(_QWORD *)P = 0i64;
    }
    ExFreePoolWithTag(P, 0x54706E50u);
  }
}

Referenced by:

IopAllocateRelationList
PipRemoveDevicesInRelationList
PnpBuildRemovalRelationList
PnpCancelRemoveOnHungDevices
PnpInvalidateRelationsInList
PnpProcessCompletedEject
PnpProcessQueryRemoveAndEject
PnpQueuePendingSurpriseRemoval