Dereference the port object in PspExitThread.
authorHartmut Birr <osexpert@googlemail.com>
Fri, 16 Sep 2005 14:50:25 +0000 (14:50 +0000)
committerHartmut Birr <osexpert@googlemail.com>
Fri, 16 Sep 2005 14:50:25 +0000 (14:50 +0000)
svn path=/trunk/; revision=17879

reactos/ntoskrnl/ps/kill.c

index c3ea033..7fbc57b 100644 (file)
@@ -281,6 +281,7 @@ PspExitThread(NTSTATUS ExitStatus)
 
         /* Send the LPC Message */
         LpcSendTerminationPort(TerminationPort->Port, CurrentThread->CreateTime);
+        ObDereferenceObject(TerminationPort->Port);
 
         /* Free the Port */
         ExFreePool(TerminationPort);