mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-12 03:18:26 -06:00
Windows: Fix keyfiles path passed as CLI argument and set as default not always cleared from RAM when VeraCrypt exits
This commit is contained in:
@@ -179,7 +179,7 @@ BOOL bInPlaceEncNonSysPending = FALSE; // TRUE if the non-system in-place encry
|
||||
BOOL PimEnable = FALSE;
|
||||
BOOL KeyFilesEnable = FALSE;
|
||||
KeyFile *FirstKeyFile = NULL;
|
||||
KeyFilesDlgParam defaultKeyFilesParam;
|
||||
KeyFilesDlgParam defaultKeyFilesParam = {0};
|
||||
|
||||
BOOL IgnoreWmDeviceChange = FALSE;
|
||||
BOOL DeviceChangeBroadcastDisabled = FALSE;
|
||||
@@ -487,6 +487,8 @@ void FinalizeGlobalLocks ()
|
||||
void cleanup ()
|
||||
{
|
||||
burn (&CmdTokenPin, sizeof (CmdTokenPin));
|
||||
KeyFileRemoveAll (&FirstKeyFile);
|
||||
KeyFileRemoveAll (&defaultKeyFilesParam.FirstKeyFile);
|
||||
|
||||
/* Cleanup the GDI fonts */
|
||||
if (hFixedFont != NULL)
|
||||
|
||||
Reference in New Issue
Block a user