Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Free dynamically allocated memory.
[simgrid.git] / teshsuite / smpi / mpich3-test / perf / non_zero_root.c
index 553c2db..63970c8 100644 (file)
@@ -13,8 +13,6 @@
 
 #define ERROR_MARGIN 0.5
 
-static int verbose = 0;
-
 int main(int argc, char *argv[])
 {
     char *sbuf, *rbuf;
@@ -27,9 +25,6 @@ int main(int argc, char *argv[])
     MPI_Comm_rank(MPI_COMM_WORLD, &rank);
     MPI_Comm_size(MPI_COMM_WORLD, &size);
 
-    if (getenv("MPITEST_VERBOSE"))
-        verbose = 1;
-
     /* Allocate memory regions to communicate */
     sbuf = (char *) malloc(SIZE);
     rbuf = (char *) malloc(size * SIZE);
@@ -75,6 +70,8 @@ int main(int argc, char *argv[])
             printf(" No Errors\n");
     }
 
+    free(sbuf);
+    free(rbuf);
     MPI_Finalize();
 
     return 0;