SepReleaseTokenSecurityAttributesAndOperationsInformation

NTSTATUS __stdcall SepReleaseTokenSecurityAttributesAndOperationsInformation(
        VOID *CapturedAttributesAndOperations,
        CHAR RequestorMode){
  if( RequestorMode )
  {
    ExFreePoolWithTag(*((PVOID *)CapturedAttributesAndOperations + 1), 0);
    if( *(_QWORD *)CapturedAttributesAndOperations )
      SepFreeCapturedTokenSecurityAttributesInformation(*(_TOKEN_SECURITY_ATTRIBUTES_INFORMATION **)CapturedAttributesAndOperations);
    ExFreePoolWithTag(CapturedAttributesAndOperations, 0);
  }
  return 0;
}

Referenced by:

NtSetInformationToken