Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
uncomment some calls to free
[simgrid.git] / teshsuite / smpi / mpich3-test / coll / allgatherv4.c
index 0cb30d0..2af91af 100644 (file)
@@ -112,8 +112,8 @@ int main(int argc, char ** argv)
     comm_tests(comm);
     MPI_Comm_free(&comm);
 
-    //free(SMPI_VARGET_GLOBAL(sbuf));
-    //free(SMPI_VARGET_GLOBAL(rbuf));
+    free(SMPI_VARGET_GLOBAL(sbuf));
+    free(SMPI_VARGET_GLOBAL(rbuf));
     free(SMPI_VARGET_GLOBAL(recvcounts));
     free(SMPI_VARGET_GLOBAL(displs));
 
@@ -127,7 +127,8 @@ fn_exit:
 void comm_tests(MPI_Comm comm)
 {
     int comm_size, comm_rank;
-    double rtime, max_time;
+    double rtime = rtime;       /* stop warning about unused variable */
+    double max_time;
     long long msg_size;
 
     MPI_Comm_size(comm, &comm_size);