diff options
| author | Pieter Wuille <[email protected]> | 2012-02-18 15:36:40 +0100 |
|---|---|---|
| committer | Luke Dashjr <[email protected]> | 2012-02-27 12:36:56 -0500 |
| commit | caad1add4f383960ca09bb466ddd16652245befe (patch) | |
| tree | 640d53b40461d6ba7544a37a846a75766c51e8d6 /src/wallet.cpp | |
| parent | Extra wallet locking fixes (diff) | |
| download | discoin-caad1add4f383960ca09bb466ddd16652245befe.tar.xz discoin-caad1add4f383960ca09bb466ddd16652245befe.zip | |
Free pwalletdbEncryption after encryping wallet
Fixes a memory leak.
Diffstat (limited to 'src/wallet.cpp')
| -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 43fb6b6da..9f7422d1f 100644 --- a/src/wallet.cpp +++ b/src/wallet.cpp @@ -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; } |