commit bffc2a1d4b6a547e312dc5a5efaab26f02bca52c
parent 25a1ed048f15a55cd21b9bc17f619ae84f8a4e55
Author: SomberNight <somber.night@protonmail.com>
Date: Wed, 14 Aug 2019 17:27:38 +0200
wizard: try harder to have temporarily stored pw erased from memory
Diffstat:
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/electrum/base_wizard.py b/electrum/base_wizard.py
@@ -582,6 +582,7 @@ class BaseWizard(Logger):
if not self.pw_args:
return
password, encrypt_storage, storage_enc_version = self.pw_args
+ self.pw_args = None # clean-up so that it can get GC-ed
storage = WalletStorage(path)
storage.set_keystore_encryption(bool(password))
if encrypt_storage:
diff --git a/electrum/gui/qt/installwizard.py b/electrum/gui/qt/installwizard.py
@@ -287,7 +287,7 @@ class InstallWizard(QDialog, MessageBoxMixin, BaseWizard):
else:
raise Exception('Unexpected encryption version')
- return self.temp_storage.path, (self.temp_storage if self.temp_storage.file_exists() else None) #
+ return self.temp_storage.path, (self.temp_storage if self.temp_storage.file_exists() else None)
def run_upgrades(self, storage):
path = storage.path