[NTOS:EX]
authorThomas Faber <thomas.faber@reactos.org>
Sat, 29 Aug 2015 14:14:43 +0000 (14:14 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Sat, 29 Aug 2015 14:14:43 +0000 (14:14 +0000)
- Fix MDL leak in NtStopProfile
CORE-10066

svn path=/trunk/; revision=68858

reactos/ntoskrnl/ex/profile.c

index 20a6c88..1784bd4 100644 (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 */