mirror of
https://github.com/reactos/reactos.git
synced 2024-12-22 18:43:30 +08:00
[NTOSKRNL]
Some ExFreePool -> ExFreePoolWithTag CORE-6725 #resolve #comment Committed in r57506. svn path=/trunk/; revision=57506
This commit is contained in:
parent
dfbde4a0d6
commit
9c2bfc5ecd
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user