diff options
| author | Pieter Wuille <[email protected]> | 2012-02-18 15:36:40 +0100 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2012-02-18 15:44:34 +0100 |
| commit | fcfd7ff8f894f0ee3c962a9e469b20d42cbfe5b0 (patch) | |
| tree | 343f581d8138349e8b8de8133c46102ffd6a27bf /src/wallet.cpp | |
| parent | Merge pull request #859 from laanwj/2012_02_guilanguagearg (diff) | |
| download | discoin-fcfd7ff8f894f0ee3c962a9e469b20d42cbfe5b0.tar.xz discoin-fcfd7ff8f894f0ee3c962a9e469b20d42cbfe5b0.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 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; } |