Explorar o código

mpi/src/starpu_mpi.c: free allocated memory

Nathalie Furmento %!s(int64=10) %!d(string=hai) anos
pai
achega
498671e208
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      mpi/src/starpu_mpi.c

+ 1 - 0
mpi/src/starpu_mpi.c

@@ -247,6 +247,7 @@ static void _starpu_mpi_submit_ready_request(void *arg)
 						STARPU_MPI_ASSERT_MSG(req->ptr, "cannot allocate message of size %ld\n", req->count);
 					}
 					_starpu_mpi_req_list_push_front(ready_requests, req);
+					free(sync_req);
 				}
 				else
 				{