[NTOS:EX]
authorThomas Faber <thomas.faber@reactos.org>
Mon, 31 Aug 2015 13:53:14 +0000 (13:53 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Mon, 31 Aug 2015 13:53:14 +0000 (13:53 +0000)
- Don't leak process reference in NtFlushInstructionCache. Spotted by Stefan

svn path=/trunk/; revision=68881

reactos/ntoskrnl/ex/sysinfo.c

index 0d30d59..3f5bf6f 100644 (file)
@@ -2605,6 +2605,7 @@ NtFlushInstructionCache(
     {
         /* Detach from the process */
         KeUnstackDetachProcess(&ApcState);
+        ObDereferenceObject(Process);
     }
 
     return STATUS_SUCCESS;