aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-12-13 18:44:18 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-12-18 15:16:03 +0000
commitb1634aa3e8d5feb9dc443d1c0edaeaa64225fe3c (patch)
treef855cbd857160ff9426b59c74e708d6a83d87c25 /src/cryptonote_core
parentcryptonote_core: fix db leak on error (diff)
downloadmonero-b1634aa3e8d5feb9dc443d1c0edaeaa64225fe3c.tar.xz
blockchain: don't leave dangling pointers in this
Diffstat (limited to 'src/cryptonote_core')
-rw-r--r--src/cryptonote_core/blockchain.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cryptonote_core/blockchain.cpp b/src/cryptonote_core/blockchain.cpp
index 6e45417c0..c16d56568 100644
--- a/src/cryptonote_core/blockchain.cpp
+++ b/src/cryptonote_core/blockchain.cpp
@@ -490,7 +490,9 @@ bool Blockchain::deinit()
}
delete m_hardfork;
+ m_hardfork = NULL;
delete m_db;
+ m_db = NULL;
return true;
}
//------------------------------------------------------------------