Skip to content
Snippets Groups Projects
Commit bb6859fa authored by Christian Engwer's avatar Christian Engwer
Browse files

[heap] don't call free on null-ptr

parent 53b79980
1 merge request!94Feature/enforce dynamic memory allocmodel
......@@ -155,9 +155,9 @@ void NS_PREFIX DisposeHeap (HEAP *theHeap)
using namespace std;
for (INT i=0; i<MARK_STACK_SIZE; i++)
theHeap->markedMemory[i].~vector<void*>();
}
free(theHeap);
free(theHeap);
}
}
/****************************************************************************/
......
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