msgtype = (gras_msgtype_t)xbt_set_get_by_name(_gras_msgtype_set,namev);
found = 1;
} CATCH(e) {
- if (e.category != not_found_error)
+ if (e.category != not_found_error) {
+ xbt_free(namev);
RETHROW;
+ }
xbt_ex_free(e);
}
namev,gras_datadesc_get_name(payload_answer),
gras_datadesc_get_name(msgtype->answer_type));
+ xbt_free(namev);
return ; /* do really ignore it */
}
gras_msg_procdata_t pd=
(gras_msg_procdata_t)gras_libdata_by_id(gras_msg_libdata_id);
gras_cblist_t *list=NULL;
- int cpt;
+ unsigned int cpt;
DEBUG2("Register %p as callback to '%s'",cb,msgtype->name);
(gras_msg_procdata_t)gras_libdata_by_id(gras_msg_libdata_id);
gras_cblist_t *list;
gras_msg_cb_t cb_cpt;
- int cpt;
+ unsigned int cpt;
int found = 0;
/* search the list of cb for this message on this host */