mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 09:52:56 +00:00
[NTOSKRNL] Keep page file name along the page file and free it on shutdown
This commit is contained in:
parent
5aaadf39db
commit
34e8f45122
3 changed files with 77 additions and 26 deletions
|
@ -25,6 +25,11 @@ MiShutdownSystem(VOID)
|
|||
/* Loop through all the paging files */
|
||||
for (i = 0; i < MmNumberOfPagingFiles; i++)
|
||||
{
|
||||
/* Free page file name */
|
||||
ASSERT(MmPagingFile[i]->PageFileName.Buffer != NULL);
|
||||
ExFreePoolWithTag(MmPagingFile[i]->PageFileName.Buffer, TAG_MM);
|
||||
MmPagingFile[i]->PageFileName.Buffer = NULL;
|
||||
|
||||
/* And close them */
|
||||
ZwClose(MmPagingFile[i]->FileHandle);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue