diff --git a/driver/session.c b/driver/session.c index 100c9df..bd02daf 100644 --- a/driver/session.c +++ b/driver/session.c @@ -79,6 +79,9 @@ SessionTerminate() session->um_handle = NULL; session->process = NULL; session->is_session_active = FALSE; + + RtlZeroMemory(&session->module, sizeof(MODULE_INFORMATION)); + SessionTerminateHeartbeat(&session->heartbeat_config); CryptCloseSessionCryptObjects(); KeReleaseGuardedMutex(&session->lock);