Skip to content

Commit b6acd12

Browse files
committed
Deallocate the group_list pointer on finalisation
1 parent 9f51396 commit b6acd12

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

comex/src-mpi-mt/groups.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,7 @@ void comex_group_finalize()
461461
COMEX_ASSERT(MPI_SUCCESS == status);
462462
status = MPI_Comm_free(&(g_state.comm));
463463
COMEX_ASSERT(MPI_SUCCESS == status);
464+
group_list = NULL;
464465
}
465466

466467

comex/src-mpi-pr/groups.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -633,6 +633,7 @@ void comex_group_finalize()
633633
COMEX_ASSERT(MPI_SUCCESS == status);
634634
status = MPI_Comm_free(&(g_state.comm));
635635
COMEX_ASSERT(MPI_SUCCESS == status);
636+
group_list = NULL;
636637
}
637638

638639

comex/src-mpi-pt/groups.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -497,6 +497,7 @@ void comex_group_finalize()
497497
COMEX_ASSERT(MPI_SUCCESS == status);
498498
status = MPI_Comm_free(&(g_state.comm));
499499
COMEX_ASSERT(MPI_SUCCESS == status);
500+
group_list = NULL;
500501
}
501502

502503

comex/src-ofa/groups.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,4 +335,5 @@ void comex_group_finalize()
335335
comex_igroup_finalize(previous_group_list_item);
336336
free(previous_group_list_item);
337337
}
338+
group_list = NULL;
338339
}

0 commit comments

Comments
 (0)