From: Thomas Bluemel Date: Sat, 29 Oct 2005 22:58:14 +0000 (+0000) Subject: release the keep-alive reference of the process object X-Git-Tag: backups/ros-branch-0_2_9@19949~1024 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=cdea367eef89d9d0a42cfd93aa0fd6b527d1af4e release the keep-alive reference of the process object svn path=/trunk/; revision=18861 --- diff --git a/reactos/ntoskrnl/ps/kill.c b/reactos/ntoskrnl/ps/kill.c index 7cb67649c18..6e4b8a74c50 100644 --- a/reactos/ntoskrnl/ps/kill.c +++ b/reactos/ntoskrnl/ps/kill.c @@ -524,6 +524,9 @@ PspExitProcess(PEPROCESS Process) ObKillProcess(Process); KeSetProcess(&Process->Pcb, IO_NO_INCREMENT); + + /* release the keep-alive reference of the process object */ + ObDereferenceObject(Process); return(STATUS_SUCCESS); }