Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
clean_fun is the function that frees the userdata of a detached send
[simgrid.git] / src / smpi / smpi_base.c
index b358b67..91cb599 100644 (file)
@@ -114,7 +114,8 @@ void smpi_mpi_start(MPI_Request request)
     request->action = 
                SIMIX_req_comm_isend(mailbox, request->size, -1.0,
                                    request->buf, request->size,
-                                   &match_send,free, // a simple free is used to free the buffer
+                                   &match_send,
+                                   &smpi_mpi_request_free, // how to free the userdata if a detached send fails
                                    request,
                                    // detach if msg size < eager/rdv switch limit
                                    detached);