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
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3
2 changed files with 6 additions and 6 deletions

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