X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/78066359276779d87571226ba7a6c1ef69ea1a83..52829c86978c0bee71a0dcd43d4a07a5922d06c2:/src/simix/smx_network.c diff --git a/src/simix/smx_network.c b/src/simix/smx_network.c index 56be361af0..7cce2f7917 100644 --- a/src/simix/smx_network.c +++ b/src/simix/smx_network.c @@ -884,8 +884,8 @@ void smpi_comm_copy_data_callback(smx_action_t comm, size_t buff_size) XBT_DEBUG("Copy the data over"); memcpy(comm->comm.dst_buff, comm->comm.src_buff, buff_size); if (comm->comm.detached) { // if this is a detached send, the source buffer was duplicated by SMPI sender to make the original buffer available to the application ASAP - comm->comm.clean_fun(comm->comm.src_buff); - comm->comm.src_buff = NULL; + xbt_free(comm->comm.src_buff); + comm->comm.src_buff = NULL; } }