--- branches/vis12/src/compiler/c-target/fragments/shutdown.in 2012/04/21 15:30:26 1861 +++ branches/vis12/src/compiler/c-target/fragments/shutdown.in 2012/04/22 19:45:47 1862 @@ -1,6 +1,12 @@ //! shutdown and deallocate the world void @PREFIX@Shutdown (@PREFIX@World_t *wrld) { + biffMsgNix (wrld->errors); + FREE (wrld->globals); +#ifdef DIDEROT_TARGET_PARALLEL + FREE (wrld->sched); +#endif + // free strand objects for (int i = 0; i < wrld->numStrands; i++) { FREE (wrld->inState[i]); @@ -12,8 +18,6 @@ FREE (wrld->outState); FREE (wrld->status); -/* FIXME: what about the err string? */ - FREE (wrld); } // @PREFIX@Shutdown