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 memleak on exit
[simgrid.git]
/
src
/
gras
/
Msg
/
msg.c
diff --git
a/src/gras/Msg/msg.c
b/src/gras/Msg/msg.c
index
dc57939
..
e705dbc
100644
(file)
--- a/
src/gras/Msg/msg.c
+++ b/
src/gras/Msg/msg.c
@@
-43,6
+43,8
@@
static void gras_msg_procdata_free(void *data) {
xbt_dynar_free(&( res->msg_queue ));
xbt_dynar_free(&( res->cbl_list ));
xbt_dynar_free(&( res->timers ));
xbt_dynar_free(&( res->msg_queue ));
xbt_dynar_free(&( res->cbl_list ));
xbt_dynar_free(&( res->timers ));
+
+ free(res);
}
/*
}
/*
@@
-308,7
+310,7
@@
gras_msg_wait(double timeout,
RAISE0(mismatch_error,
"Cannot wait for the NULL message (did msgtype_by_name fail?)");
RAISE0(mismatch_error,
"Cannot wait for the NULL message (did msgtype_by_name fail?)");
- VERB1("Waiting for message
%s
",msgt_want->name);
+ VERB1("Waiting for message
'%s'
",msgt_want->name);
start = now = gras_os_time();
start = now = gras_os_time();
@@
-480,7
+482,7
@@
gras_cb_register(gras_msgtype_t msgtype,
gras_cblist_t *list=NULL;
int cpt;
gras_cblist_t *list=NULL;
int cpt;
- DEBUG2("Register %p as callback to
%s
",cb,msgtype->name);
+ DEBUG2("Register %p as callback to
'%s'
",cb,msgtype->name);
/* search the list of cb for this message on this host (creating if NULL) */
xbt_dynar_foreach(pd->cbl_list,cpt,list) {
/* search the list of cb for this message on this host (creating if NULL) */
xbt_dynar_foreach(pd->cbl_list,cpt,list) {