Skip to content

Commit

Permalink
Merge pull request #12883 from hppritcha/pr1268_for_v50x
Browse files Browse the repository at this point in the history
sessions: fix some problems with multiple init/fini
  • Loading branch information
janjust authored Oct 30, 2024
2 parents a4d90c8 + 67d2215 commit 80c7ec4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ompi/instance/instance.c
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,8 @@ void ompi_mpi_instance_release (void)
opal_argv_free (ompi_mpi_instance_pmix_psets);
ompi_mpi_instance_pmix_psets = NULL;

OBJ_DESTRUCT(&ompi_mpi_instance_null);

opal_finalize_cleanup_domain (&ompi_instance_basic_domain);
OBJ_DESTRUCT(&ompi_instance_basic_domain);

Expand Down Expand Up @@ -950,8 +952,6 @@ static int ompi_mpi_instance_finalize_common (void)

ompi_proc_finalize();

OBJ_DESTRUCT(&ompi_mpi_instance_null);

ompi_mpi_instance_release ();

if (0 == opal_initialized) {
Expand Down
4 changes: 4 additions & 0 deletions opal/mca/base/mca_base_var_group.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
* reserved.
* Copyright (c) 2017 Research Organization for Information Science
* and Technology (RIST). All rights reserved.
* Copyright (c) 2024 Triad National Security, LLC. All rights
* reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
Expand Down Expand Up @@ -374,6 +376,8 @@ int mca_base_var_group_deregister(int group_index)
for (int i = 0; i < size; ++i) {
OBJ_RELEASE(enums[i]);
}
opal_value_array_set_size(&group->group_enums, 0);


size = opal_value_array_get_size(&group->group_subgroups);
subgroups = OPAL_VALUE_ARRAY_GET_BASE(&group->group_subgroups, int);
Expand Down

0 comments on commit 80c7ec4

Please sign in to comment.