git://git.novaco.in
/
novacoin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
2d36b60
)
Free pwalletdbEncryption after encryping wallet
author
Pieter Wuille
<pieter.wuille@gmail.com>
Sat, 18 Feb 2012 14:36:40 +0000 (15:36 +0100)
committer
Pieter Wuille
<pieter.wuille@gmail.com>
Sat, 18 Feb 2012 14:44:34 +0000 (15:44 +0100)
Fixes a memory leak.
src/wallet.cpp
patch
|
blob
|
history
diff --git
a/src/wallet.cpp
b/src/wallet.cpp
index
1e769d7
..
9d80f8a
100644
(file)
--- 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;
}