Author: cgutman
Date: Mon Dec 19 01:22:37 2011
New Revision: 54689
URL:
http://svn.reactos.org/svn/reactos?rev=54689&view=rev
Log:
[NTOSKRNL]
- Fix a page reference leak when reading or writing pages to the swap file
Modified:
trunk/reactos/ntoskrnl/mm/pagefile.c
Modified: trunk/reactos/ntoskrnl/mm/pagefile.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/pagefile.c?rev…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/pagefile.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/pagefile.c [iso-8859-1] Mon Dec 19 01:22:37 2011
@@ -253,7 +253,6 @@
MmInitializeMdl(Mdl, NULL, PAGE_SIZE);
MmBuildMdlFromPages(Mdl, &Page);
- MmReferencePage(Page);
Mdl->MdlFlags |= MDL_PAGES_LOCKED;
file_offset.QuadPart = offset * PAGE_SIZE;
@@ -316,7 +315,6 @@
MmInitializeMdl(Mdl, NULL, PAGE_SIZE);
MmBuildMdlFromPages(Mdl, &Page);
- MmReferencePage(Page);
Mdl->MdlFlags |= MDL_PAGES_LOCKED;
file_offset.QuadPart = offset * PAGE_SIZE;