EtwpFreePartitionMemory

VOID __fastcall EtwpFreePartitionMemory(INT64 a1, VOID *a2){
  struct _MDL *v3; 
  MDL *v4; 
  __int64 v5; 
  v5 = 0i64;
  v3 = (struct _MDL *)EtwpUnregisterPartitionPages(&v5, (INT64)a2);
  v4 = v3;
  if( v3 )
  {
    MmUnmapLockedPages(a2, v3);
    MiFreePagesFromMdl(v4, 0i64);
    ExFreePoolWithTag(v4, 0);
  }
}

Referenced by:

EtwpFreeTraceBuffer