Author: fireball
Date: Tue Jul 15 08:44:14 2008
New Revision: 34522
URL:
http://svn.reactos.org/svn/reactos?rev=34522&view=rev
Log:
Dmitry Gorbachev
- Don't leak critical region when going through failure return branch.
See issue #3517 for more details.
Modified:
trunk/reactos/ntoskrnl/ps/thread.c
Modified: trunk/reactos/ntoskrnl/ps/thread.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ps/thread.c?rev=3…
==============================================================================
--- trunk/reactos/ntoskrnl/ps/thread.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ps/thread.c [iso-8859-1] Tue Jul 15 08:44:14 2008
@@ -582,6 +582,7 @@
Quickie:
/* When we get here, the process is locked, unlock it */
ExReleasePushLockExclusive(&Process->ProcessLock);
+ KeLeaveCriticalRegion();
/* Uninitailize it */
KeUninitThread(&Thread->Tcb);