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
Fix use after free when using SIMIX_network_wait().
[simgrid.git]
/
src
/
gras
/
Msg
/
sg_msg.c
diff --git
a/src/gras/Msg/sg_msg.c
b/src/gras/Msg/sg_msg.c
index
f82f99a
..
fc1b66d
100644
(file)
--- a/
src/gras/Msg/sg_msg.c
+++ b/
src/gras/Msg/sg_msg.c
@@
-97,6
+97,7
@@
gras_msg_t gras_msg_recv_any(void)
xbt_dynar_get_cpy(comms, got, &(comm));
msg = SIMIX_communication_get_data(comm);
VERB1("Got something. Communication %p's over", comm);
+ SIMIX_communication_destroy(comm);
/* Reinstall a waiting communication on that rdv */
/* Get the sock again