Skip to content
Snippets Groups Projects
Commit 725e2cbc authored by Petr Rockai's avatar Petr Rockai
Browse files

VM: Report memory leaks via the fault string mechanism.

parent 3525b126
No related branches found
No related tags found
No related merge requests found
......@@ -76,7 +76,7 @@ namespace divine::vm::ctx
if ( !flagged )
this->fault( _VM_F_Leak, this->frame(), this->pc() );
flagged = true;
trace( "LEAK: " + brick::string::fmt( ptr ) );
this->_fault += "object " + brick::string::fmt( ptr ) + " leaked";
};
if ( this->debug_mode() )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment