Skip to content

Commit

Permalink
fixes for pr 3329
Browse files Browse the repository at this point in the history
PR 3329 introduced a regression which causes Open MPI's
MPI_Intercomm_from_groups method to fail.

Related to open-mpi/ompi#12449

Signed-off-by: Howard Pritchard <howardp@lanl.gov>
  • Loading branch information
hppritcha authored and rhc54 committed Apr 4, 2024
1 parent 2f225b0 commit 213956c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/pmix_client_group.c
Expand Up @@ -1555,7 +1555,7 @@ static void construct_cbfunc(struct pmix_peer_t *pr,

PMIX_INFO_CREATE(iptr, ninfo);
n = 0;
PMIX_INFO_LOAD(&iptr[n], PMIX_GROUP_ID, &cb->grpid, PMIX_STRING);
PMIX_INFO_LOAD(&iptr[n], PMIX_GROUP_ID, cb->grpid, PMIX_STRING);
++n;
if (0 < nmembers) {
PMIX_INFO_LOAD(&iptr[n], PMIX_GROUP_MEMBERSHIP, &darray, PMIX_DATA_ARRAY);
Expand Down
2 changes: 2 additions & 0 deletions src/include/pmix_globals.c
Expand Up @@ -585,9 +585,11 @@ static void grdes(pmix_group_t *p)
{
if (NULL != p->grpid) {
free(p->grpid);
p->grpid = NULL;
}
if (NULL != p->members) {
PMIX_PROC_FREE(p->members, p->nmbrs);
p->members = NULL;
}
}
PMIX_CLASS_INSTANCE(pmix_group_t,
Expand Down

0 comments on commit 213956c

Please sign in to comment.