Fix leak in previous commit
@@ -65,6 +65,7 @@ VOID PhInitializeProviderThread(
{
ProviderThread->ThreadHandle = NULL;
ProviderThread->TimerHandle = NULL;
+ ProviderThread->EventHandle = NULL;
ProviderThread->Interval = Interval;
ProviderThread->State = ProviderThreadStopped;
@@ -285,8 +286,10 @@ VOID PhStopProviderThread(
// Free resources.
NtClose(ProviderThread->ThreadHandle);
NtClose(ProviderThread->TimerHandle);
+ NtClose(ProviderThread->EventHandle);
ProviderThread->ThreadHandle = NULL;
ProviderThread->TimerHandle = NULL;
+ ProviderThread->EventHandle = NULL;
ProviderThread->State = ProviderThreadStopped;
}
