[NTOS:PS] Do not leak the Thread. Addendum to 0c8f0785

This commit is contained in:
Stanislav Motylkov 2021-05-08 00:32:14 +03:00
parent 0c8f07854b
commit 83dbb6b27e
No known key found for this signature in database
GPG key ID: AFE513258CBA9E92

View file

@ -2469,6 +2469,7 @@ NtSetInformationThread(IN HANDLE ThreadHandle,
{
/* Fail */
Status = STATUS_INVALID_PARAMETER;
ObDereferenceObject(Thread);
break;
}