diff --git a/src/amuse/community/gadget2/interface.cc b/src/amuse/community/gadget2/interface.cc index 6543e80047..6902bcfdb2 100644 --- a/src/amuse/community/gadget2/interface.cc +++ b/src/amuse/community/gadget2/interface.cc @@ -1453,6 +1453,7 @@ int check_counts_and_free(int *count, int length){ #ifndef NOMPI MPI_Reduce(count, NULL, length, MPI_INT, MPI_SUM, 0, GADGET_WORLD); #endif + delete[] count; return 0; } else { #ifndef NOMPI