Author: ekohl
Date: Sat Oct 31 13:32:12 2015
New Revision: 69749
URL:
http://svn.reactos.org/svn/reactos?rev=69749&view=rev
Log:
[NTOSKRNL]
Dereference the primary access token in SeDeassignPrimaryToken.
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=69…
==============================================================================
--- trunk/reactos/ntoskrnl/se/token.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/se/token.c [iso-8859-1] Sat Oct 31 13:32:12 2015
@@ -294,6 +294,9 @@
/* Mark the Old Token as free */
OldToken->TokenInUse = 0;
+
+ /* Dereference the Token */
+ ObDereferenceObject(OldToken);
}
static ULONG