rdv_client : sock_data->rdv_server, sock_data->comm_recv);
- /* The following assert fails in some valid conditions, we need to
+ /* If the following assert fails in some valid conditions, we need to
* change the code downward looking for the socket again.
*
* For now it relies on the facts (A) that sockets and comms are aligned
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
/*initialize gras message */
msg = xbt_new(s_gras_msg_t, 1);
+ sock->refcount++;
msg->expe = sock;
msg->kind = kind;
msg->type = msgtype;