[NTOS:MM]

- In debug builds, invalidate the MEMORY_AREA's Magic on destroy to catch potential uses after free

svn path=/trunk/; revision=72161
This commit is contained in:
Thomas Faber 2016-08-09 07:28:02 +00:00
parent 8a32608dfe
commit 41defc9597

View file

@ -378,6 +378,9 @@ MmFreeMemoryArea(
}
}
#if DBG
MemoryArea->Magic = 'daeD';
#endif
ExFreePoolWithTag(MemoryArea, TAG_MAREA);
DPRINT("MmFreeMemoryAreaByNode() succeeded\n");