} else {
XBT_WARN("Task '%s' is defined more than once", name);
}
+ xbt_free(name);
} else {
SD_task_dependency_add(NULL, NULL, src, dst);
}
agclose(dag_dot);
xbt_dict_free(&jobs);
+ if (!acyclic_graph_detail(result)) {
+ XBT_ERROR("The DOT described in %s is not a DAG. It contains a cycle.",
+ basename((char*)filename));
+ xbt_dynar_free(&result);
+ /* (result == NULL) here */
+ }
return result;
}