git://git.novaco.in
/
novacoin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
69ce708
)
Free pwalletdbEncryption after encryping wallet
author
Pieter Wuille
<pieter.wuille@gmail.com>
Sat, 18 Feb 2012 14:36:40 +0000 (15:36 +0100)
committer
Luke Dashjr
<luke-jr+git@utopios.org>
Mon, 27 Feb 2012 17:36:56 +0000 (12:36 -0500)
Fixes a memory leak.
src/wallet.cpp
patch
|
blob
|
history
diff --git
a/src/wallet.cpp
b/src/wallet.cpp
index
43fb6b6
..
9f7422d
100644
(file)
--- 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;
}