Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Plug memory leaks with tests mpich3-test/rma/linked_list_*.
[simgrid.git] / teshsuite / smpi / mpich3-test / rma / linked_list_bench_lock_all.c
index 1587579..52683c4 100644 (file)
@@ -264,6 +264,7 @@ int main(int argc, char **argv)
     /* Free all the elements in the list */
     for (; my_elems_count > 0; my_elems_count--)
         MPI_Free_mem(my_elems[my_elems_count - 1]);
+    free(my_elems);
 
     MPI_Finalize();
     return 0;