diff --git a/reactos/boot/environ/lib/mm/pagealloc.c b/reactos/boot/environ/lib/mm/pagealloc.c index dd6f915333a..70138e29f03 100644 --- a/reactos/boot/environ/lib/mm/pagealloc.c +++ b/reactos/boot/environ/lib/mm/pagealloc.c @@ -712,7 +712,7 @@ MmPapFreePhysicalPages ( else if (!DontFree) { /* Caller wants memory to be freed -- should we zero it? */ - if (!(HasPageData) & + if (!(HasPageData) && (LibraryParameters.LibraryFlags & BL_LIBRARY_FLAG_ZERO_HEAP_ALLOCATIONS_ON_FREE)) {