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
Free cursor when returning from inside a xbt_dict_foreach loop.
[simgrid.git]
/
src
/
simix
/
smx_network.c
diff --git
a/src/simix/smx_network.c
b/src/simix/smx_network.c
index
46b0594
..
99ab952
100644
(file)
--- a/
src/simix/smx_network.c
+++ b/
src/simix/smx_network.c
@@
-405,6
+405,7
@@
XBT_INLINE int SIMIX_communication_is_latency_bounded(smx_comm_t comm)
if ((void *) comm == (void *) key) {
DEBUG2("key %p found, return value latency limited value %d",
(void *) key, (int) data);
+ xbt_dict_cursor_free(&cursor);
return (int) data;
}
}