git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@9153
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
} else if(req->comm.type == SIMIX_COMM_RECEIVE) {
req_data = req->comm.dst_data;
}
- if(req->comm.type == type && (!match_fun || match_fun(data, req_data))) {
- xbt_fifo_remove_item(rdv->comm_fifo, item);
- req->comm.refcount++;
- req->comm.rdv = NULL;
- return req;
- }
+ if (req->comm.type == type && (!match_fun || match_fun(data, req_data))) {
+ xbt_fifo_remove_item(rdv->comm_fifo, item);
+ xbt_fifo_free_item(item);
+ req->comm.refcount++;
+ req->comm.rdv = NULL;
+ return req;
+ }
}
DEBUG0("Communication request not found");
return NULL;