fix a few leaks by throwing objects, not newed pointers to objects

This commit is contained in:
moneromooo-monero
2017-12-09 12:56:27 +00:00
parent fe568db83d
commit d753d716a6
2 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -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