Skip to content

Commit 72c4a3c

Browse files
authored
fix missing memory cleanup for MPI tasks other than 1 (#1005)
This fixes #739
1 parent 530e7f4 commit 72c4a3c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/amuse/community/gadget2/interface.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1453,6 +1453,7 @@ int check_counts_and_free(int *count, int length){
14531453
#ifndef NOMPI
14541454
MPI_Reduce(count, NULL, length, MPI_INT, MPI_SUM, 0, GADGET_WORLD);
14551455
#endif
1456+
delete[] count;
14561457
return 0;
14571458
} else {
14581459
#ifndef NOMPI

0 commit comments

Comments
 (0)