Skip to content

Commit

Permalink
ExtendedTools: Fix a thread handle leak (winsiderss#913)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgottula authored Jun 10, 2021
1 parent 568e427 commit 59c3fff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/ExtendedTools/thrdact.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ BOOLEAN EtUiCancelIoThread(
if (NT_SUCCESS(status = PhOpenThread(&threadHandle, THREAD_TERMINATE, Thread->ThreadId)))
{
status = NtCancelSynchronousIoFile(threadHandle, NULL, &isb);
NtClose(threadHandle);
}

if (status == STATUS_NOT_FOUND)
Expand Down

0 comments on commit 59c3fff

Please sign in to comment.