diff options
author | Riccardo Spagni <ric@spagni.net> | 2018-01-10 11:54:11 +0100 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2018-01-10 11:54:11 +0100 |
commit | 990389f09d53ac9319f6070a9374703d9d5c2e14 (patch) | |
tree | d573d99228129d36e93dd95206828d1183bffb40 /src/wallet/wallet_rpc_server.cpp | |
parent | Merge pull request #2997 (diff) | |
parent | wallet2: guard against the dameon sending blocks before last checkpoint (diff) | |
download | monero-990389f09d53ac9319f6070a9374703d9d5c2e14.tar.xz |
Merge pull request #3002
9996d5e9 wallet2: guard against the dameon sending blocks before last checkpoint (moneromooo-monero)
eadaa6aa wallet_rpc_server: fix wallet leak on error exit (moneromooo-monero)
Diffstat (limited to 'src/wallet/wallet_rpc_server.cpp')
-rw-r--r-- | src/wallet/wallet_rpc_server.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wallet/wallet_rpc_server.cpp b/src/wallet/wallet_rpc_server.cpp index 4c1788f0b..fc2c43c04 100644 --- a/src/wallet/wallet_rpc_server.cpp +++ b/src/wallet/wallet_rpc_server.cpp @@ -89,6 +89,8 @@ namespace tools //------------------------------------------------------------------------------------------------------------------------------ wallet_rpc_server::~wallet_rpc_server() { + if (m_wallet) + delete m_wallet; } //------------------------------------------------------------------------------------------------------------------------------ void wallet_rpc_server::set_wallet(wallet2 *cr) |