diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-12-13 18:44:18 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-12-18 15:16:03 +0000 |
commit | b1634aa3e8d5feb9dc443d1c0edaeaa64225fe3c (patch) | |
tree | f855cbd857160ff9426b59c74e708d6a83d87c25 /src | |
parent | cryptonote_core: fix db leak on error (diff) | |
download | monero-b1634aa3e8d5feb9dc443d1c0edaeaa64225fe3c.tar.xz |
blockchain: don't leave dangling pointers in this
Diffstat (limited to 'src')
-rw-r--r-- | src/cryptonote_core/blockchain.cpp | 2 |
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; } //------------------------------------------------------------------ |