Skip to content

Commit f2c6e70

Browse files
authored
Merge pull request #3800 from hppritcha/topic/fix_cray_pmix_problem
pmix/cray: fix handling of multiple finis
2 parents d1c5955 + 1f2f3db commit f2c6e70

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

opal/mca/pmix/cray/pmix_cray.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -559,16 +559,16 @@ static int cray_fini(void) {
559559

560560
if (0 == --pmix_init_count) {
561561
PMI2_Finalize();
562-
}
563562

564-
if (NULL != pmix_kvs_name) {
565-
free(pmix_kvs_name);
566-
pmix_kvs_name = NULL;
567-
}
563+
if (NULL != pmix_kvs_name) {
564+
free(pmix_kvs_name);
565+
pmix_kvs_name = NULL;
566+
}
568567

569-
if (NULL != pmix_lranks) {
570-
free(pmix_lranks);
571-
pmix_lranks = NULL;
568+
if (NULL != pmix_lranks) {
569+
free(pmix_lranks);
570+
pmix_lranks = NULL;
571+
}
572572
}
573573

574574
return OPAL_SUCCESS;

0 commit comments

Comments
 (0)