[NTOS:EX]

- Fix MDL leak in NtStopProfile
CORE-10066

svn path=/trunk/; revision=68858
This commit is contained in:
Thomas Faber 2015-08-29 14:14:43 +00:00
parent 7ac60d428d
commit a2833fad4b

View file

@ -453,6 +453,7 @@ NtStopProfile(IN HANDLE ProfileHandle)
/* Unlock the Buffer */
MmUnmapLockedPages(Profile->LockedBufferAddress, Profile->Mdl);
MmUnlockPages(Profile->Mdl);
IoFreeMdl(Profile->Mdl);
ExFreePoolWithTag(Profile->ProfileObject, TAG_PROFILE);
/* Clear the Locked Buffer pointer, meaning the Object is Stopped */