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
more leaks
[simgrid.git]
/
src
/
simix
/
smx_host.c
diff --git
a/src/simix/smx_host.c
b/src/simix/smx_host.c
index
c113725
..
f519b13
100644
(file)
--- a/
src/simix/smx_host.c
+++ b/
src/simix/smx_host.c
@@
-322,7
+322,10
@@
void SIMIX_host_restart_processes(smx_host_t host)
{
unsigned int cpt;
smx_process_arg_t arg;
- xbt_dynar_foreach(SIMIX_host_priv(host)->auto_restart_processes,cpt,arg) {
+ xbt_dynar_t process_list = SIMIX_host_priv(host)->auto_restart_processes;
+ if(!process_list) return;
+
+ xbt_dynar_foreach(process_list,cpt,arg) {
smx_process_t process;
@@
-353,7
+356,7
@@
void SIMIX_host_restart_processes(smx_host_t host)
}
}
- xbt_dynar_reset(
SIMIX_host_priv(host)->auto_restart_processes
);
+ xbt_dynar_reset(
process_list
);
}
void SIMIX_host_autorestart(smx_host_t host)