Skip to content

Commit 37c5d69

Browse files
committed
Make sure group_list is deallocated on finalisation
1 parent 9f51396 commit 37c5d69

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
@@ -454,6 +454,7 @@ void comex_group_finalize()
454454
_igroup_free(previous_group_list_item);
455455
}
456456

457+
group_list = NULL;
457458
free(g_state.hostid);
458459
status = MPI_Comm_free(&(g_state.node_comm));
459460
COMEX_ASSERT(MPI_SUCCESS == status);

comex/src-mpi-pr/groups.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -625,6 +625,7 @@ void comex_group_finalize()
625625
_igroup_free(previous_group_list_item);
626626
}
627627

628+
group_list = NULL;
628629
free(g_state.master);
629630
free(g_state.host);
630631
status = MPI_Comm_free(&(g_state.node_comm));

comex/src-mpi-pt/groups.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -489,6 +489,7 @@ void comex_group_finalize()
489489
_igroup_free(previous_group_list_item);
490490
}
491491

492+
group_list = NULL;
492493
free(g_state.master);
493494
free(g_state.hostid);
494495
status = MPI_Comm_free(&(g_state.node_comm));

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)