mirror of
https://github.com/monero-project/monero.git
synced 2025-08-14 13:55:37 -04:00
fix a few leaks by throwing objects, not newed pointers to objects
This commit is contained in:
parent
fe568db83d
commit
d753d716a6
2 changed files with 6 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue