mirror of
https://github.com/reactos/reactos.git
synced 2024-07-03 03:04:22 +00: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);
|
ASSERT(PageCount > MdlPageCount);
|
||||||
MmFreePagesFromMdl(Mdl);
|
MmFreePagesFromMdl(Mdl);
|
||||||
ExFreePool(Mdl);
|
ExFreePoolWithTag(Mdl, TAG_MDL);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -86,7 +86,7 @@ MmAllocateNonCachedMemory(IN SIZE_T NumberOfBytes)
|
||||||
// Out of memory...
|
// Out of memory...
|
||||||
//
|
//
|
||||||
MmFreePagesFromMdl(Mdl);
|
MmFreePagesFromMdl(Mdl);
|
||||||
ExFreePool(Mdl);
|
ExFreePoolWithTag(Mdl, TAG_MDL);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -201,7 +201,7 @@ MmFreeNonCachedMemory(IN PVOID BaseAddress,
|
||||||
// Kill the MDL (and underlying pages)
|
// Kill the MDL (and underlying pages)
|
||||||
//
|
//
|
||||||
MmFreePagesFromMdl(Mdl);
|
MmFreePagesFromMdl(Mdl);
|
||||||
ExFreePool(Mdl);
|
ExFreePoolWithTag(Mdl, TAG_MDL);
|
||||||
|
|
||||||
//
|
//
|
||||||
// Now free the system PTEs for the underlying VA
|
// 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
|
// If we didn' tfind any pages at all, fail
|
||||||
//
|
//
|
||||||
DPRINT1("NO MDL PAGES!\n");
|
DPRINT1("NO MDL PAGES!\n");
|
||||||
ExFreePool(Mdl);
|
ExFreePoolWithTag(Mdl, TAG_MDL);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue