Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Free dynamically allocated memory.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Thu, 5 Dec 2019 12:32:53 +0000 (13:32 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Thu, 5 Dec 2019 12:59:04 +0000 (13:59 +0100)
teshsuite/smpi/mpich3-test/perf/dtpack.c
teshsuite/smpi/mpich3-test/perf/non_zero_root.c

index f3ccafc..029c2a4 100644 (file)
@@ -66,6 +66,7 @@ double noise(double *list, int count)
     if (retval < 0)
         retval = -retval;
 
     if (retval < 0)
         retval = -retval;
 
+    free(margin);
     return retval;
 }
 
     return retval;
 }
 
index 0ab6f41..63970c8 100644 (file)
@@ -70,6 +70,8 @@ int main(int argc, char *argv[])
             printf(" No Errors\n");
     }
 
             printf(" No Errors\n");
     }
 
+    free(sbuf);
+    free(rbuf);
     MPI_Finalize();
 
     return 0;
     MPI_Finalize();
 
     return 0;