A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
memory cleanups
[simgrid.git]
/
examples
/
simdag
/
goal
/
goal_test.c
diff --git
a/examples/simdag/goal/goal_test.c
b/examples/simdag/goal/goal_test.c
index
e35e30e
..
6712df4
100644
(file)
--- a/
examples/simdag/goal/goal_test.c
+++ b/
examples/simdag/goal/goal_test.c
@@
-62,7
+62,7
@@
int main(int argc, char **argv) {
}
ws_list = SD_workstation_get_list();
}
ws_list = SD_workstation_get_list();
- reclaimed = xbt_dynar_new(sizeof(bcast_task_t),
NULL
);
+ reclaimed = xbt_dynar_new(sizeof(bcast_task_t),
xbt_free_ref
);
xbt_dynar_t done = NULL;
send_one(0,262144);
do {
xbt_dynar_t done = NULL;
send_one(0,262144);
do {
@@
-89,7
+89,10
@@
int main(int argc, char **argv) {
}
done=SD_simulate(-1);
} while(xbt_dynar_length(done) > 0);
}
done=SD_simulate(-1);
} while(xbt_dynar_length(done) > 0);
+ xbt_dynar_free(&done);
+ xbt_dynar_free(&reclaimed);
SD_exit();
SD_exit();
+ XBT_INFO("Done. Bailing out");
return 0;
}
return 0;
}