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
plug a bunch of memleaks in SD examples and testsuites
[simgrid.git]
/
teshsuite
/
simdag
/
comp-only-seq
/
comp-only-seq.c
diff --git
a/teshsuite/simdag/comp-only-seq/comp-only-seq.c
b/teshsuite/simdag/comp-only-seq/comp-only-seq.c
index
8bc1c66
..
a0908e2
100644
(file)
--- a/
teshsuite/simdag/comp-only-seq/comp-only-seq.c
+++ b/
teshsuite/simdag/comp-only-seq/comp-only-seq.c
@@
-19,7
+19,9
@@
int main(int argc, char **argv)
SD_create_environment(argv[1]);
SD_task_t task = SD_task_create("seqtask", NULL, 1.0);
SD_create_environment(argv[1]);
SD_task_t task = SD_task_create("seqtask", NULL, 1.0);
- SD_task_schedule(task, 1, sg_host_list(), comp_cost, comm_amount, -1.0);
+ sg_host_t *hosts = sg_host_list();
+ SD_task_schedule(task, 1, hosts, comp_cost, comm_amount, -1.0);
+ xbt_free(hosts);
SD_simulate(-1.0);
SD_simulate(-1.0);