Author: jgardou
Date: Tue Feb 17 20:41:47 2015
New Revision: 66341
URL:
http://svn.reactos.org/svn/reactos?rev=66341&view=rev
Log:
[NTOS/SE]
- Properly dereference thread object in NtOpenThreadTokenEx
Modified:
trunk/reactos/ntoskrnl/se/token.c
Modified: trunk/reactos/ntoskrnl/se/token.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/se/token.c?rev=66…
==============================================================================
--- trunk/reactos/ntoskrnl/se/token.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/se/token.c [iso-8859-1] Tue Feb 17 20:41:47 2015
@@ -3015,6 +3015,8 @@
if (CopyOnOpen && NewThread) ObDereferenceObject(NewThread);
+ ObDereferenceObject(Thread);
+
if (NT_SUCCESS(Status))
{
_SEH2_TRY