mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-02-17 02:49:19 +00:00
Free pwalletdbEncryption after encryping wallet
Fixes a memory leak.
This commit is contained in:
parent
69ce70866d
commit
caad1add4f
@ -183,7 +183,7 @@ bool CWallet::EncryptWallet(const string& strWalletPassphrase)
|
||||
if (!pwalletdbEncryption->TxnCommit())
|
||||
exit(1); //We now have keys encrypted in memory, but no on disk...die to avoid confusion and let the user reload their unencrypted wallet.
|
||||
|
||||
pwalletdbEncryption->Close();
|
||||
delete pwalletdbEncryption;
|
||||
pwalletdbEncryption = NULL;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user