[NTOSKRNL]

Some ExFreePool -> ExFreePoolWithTag

CORE-6725 #resolve #comment Committed in r57506.

svn path=/trunk/; revision=57506
This commit is contained in:
Hermès Bélusca-Maïto 2012-10-06 21:42:19 +00:00
parent dfbde4a0d6
commit 9c2bfc5ecd
2 changed files with 4 additions and 4 deletions

View file

@ -71,7 +71,7 @@ MmAllocateNonCachedMemory(IN SIZE_T NumberOfBytes)
//
ASSERT(PageCount > MdlPageCount);
MmFreePagesFromMdl(Mdl);
ExFreePool(Mdl);
ExFreePoolWithTag(Mdl, TAG_MDL);
return NULL;
}
@ -86,7 +86,7 @@ MmAllocateNonCachedMemory(IN SIZE_T NumberOfBytes)
// Out of memory...
//
MmFreePagesFromMdl(Mdl);
ExFreePool(Mdl);
ExFreePoolWithTag(Mdl, TAG_MDL);
return NULL;
}
@ -201,7 +201,7 @@ MmFreeNonCachedMemory(IN PVOID BaseAddress,
// Kill the MDL (and underlying pages)
//
MmFreePagesFromMdl(Mdl);
ExFreePool(Mdl);
ExFreePoolWithTag(Mdl, TAG_MDL);
//
// Now free the system PTEs for the underlying VA

View file

@ -345,7 +345,7 @@ MiAllocatePagesForMdl(IN PHYSICAL_ADDRESS LowAddress,
// If we didn' tfind any pages at all, fail
//
DPRINT1("NO MDL PAGES!\n");
ExFreePool(Mdl);
ExFreePoolWithTag(Mdl, TAG_MDL);
return NULL;
}