twizard: try harder to have temporarily stored pw erased from memory - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit bffc2a1d4b6a547e312dc5a5efaab26f02bca52c DIR parent 25a1ed048f15a55cd21b9bc17f619ae84f8a4e55 HTML 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: M electrum/base_wizard.py | 1 + M electrum/gui/qt/installwizard.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) --- DIR diff --git a/electrum/base_wizard.py b/electrum/base_wizard.py t@@ -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: DIR diff --git a/electrum/gui/qt/installwizard.py b/electrum/gui/qt/installwizard.py t@@ -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