diff options
| author | Pieter Wuille <[email protected]> | 2012-02-19 09:05:40 -0800 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2012-02-19 09:05:40 -0800 |
| commit | 59b1b181e9129dbfbcea87b8cedd5ea29c9ec4ab (patch) | |
| tree | 0ee5c4680afc21b3135eeb480bbddf81c086526f /src | |
| parent | Merge pull request #862 from TheBlueMatt/warnings (diff) | |
| parent | Free pwalletdbEncryption after encryping wallet (diff) | |
| download | discoin-59b1b181e9129dbfbcea87b8cedd5ea29c9ec4ab.tar.xz discoin-59b1b181e9129dbfbcea87b8cedd5ea29c9ec4ab.zip | |
Merge pull request #865 from sipa/del_pwalletdb
Free pwalletdbEncryption after encryping wallet
Diffstat (limited to 'src')
| -rw-r--r-- | src/wallet.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet.cpp b/src/wallet.cpp index 1e769d7e6..9d80f8afe 100644 --- a/src/wallet.cpp +++ b/src/wallet.cpp @@ -191,7 +191,7 @@ bool CWallet::EncryptWallet(const SecureString& 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; } |