isl_schedule.c: graph_free: improve error handling