}
int main(int argc, char **argv) {
- xbt_dynar_t dax;
+ xbt_dynar_t dax, changed;
unsigned int cursor;
SD_task_t task;
}
INFO0("------------------- Run the schedule ---------------------------");
- SD_task_t *changed = SD_simulate(-1);
- free(changed);
+ changed = SD_simulate(-1);
+ xbt_dynar_free_container(&changed);
INFO0("------------------- Produce the trace file---------------------------");
INFO1("Producing the trace of the run into %s",tracefilename);
FILE*out = fopen(tracefilename,"w");