aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-12-09 12:56:27 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-12-18 15:15:13 +0000
commitd753d716a6288ea9ecb4c9262b63ad804fa0a6e0 (patch)
tree2ee2991f8088a1d734a9bce9e01b39c144957f74 /src/cryptonote_core
parentp2p: use size_t for arbitrary counters instead of uint8_t (diff)
downloadmonero-d753d716a6288ea9ecb4c9262b63ad804fa0a6e0.tar.xz
fix a few leaks by throwing objects, not newed pointers to objects
Diffstat (limited to 'src/cryptonote_core')
-rw-r--r--src/cryptonote_core/blockchain.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptonote_core/blockchain.cpp b/src/cryptonote_core/blockchain.cpp
index 123bd194b..2fd61e1d2 100644
--- a/src/cryptonote_core/blockchain.cpp
+++ b/src/cryptonote_core/blockchain.cpp
@@ -471,7 +471,7 @@ bool Blockchain::deinit()
// memory operation), otherwise we may cause a loop.
if (m_db == NULL)
{
- throw new DB_ERROR("The db pointer is null in Blockchain, the blockchain may be corrupt!");
+ throw DB_ERROR("The db pointer is null in Blockchain, the blockchain may be corrupt!");
}
try