MCPcopy Create free account
hub / github.com/csmith-project/csmith / doFinalization

Method doFinalization

src/Function.cpp:887–900  ·  view source on GitHub ↗

* Release all dynamic memory */

Source from the content-addressed store, hash-verified

885 * Release all dynamic memory
886 */
887void
888Function::doFinalization(void)
889{
890 for_each(FuncList.begin(), FuncList.end(), std::ptr_fun(deleteFunction));
891
892 FuncList.clear();
893
894 std::vector<FactMgr*>::iterator i;
895 for (i = FMList.begin(); i != FMList.end(); ++i) {
896 delete (*i);
897 }
898 FMList.clear();
899 FactMgr::doFinalization();
900}
901
902Function::~Function()
903{

Callers

nothing calls this directly

Calls 3

beginMethod · 0.80
endMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected