Skip to content

Commit fd27d76

Browse files
authored
Merge pull request #6764 from rhc54/topic/flux
Fix finalize of flux component
2 parents 560886f + d4070d5 commit fd27d76

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

opal/mca/pmix/flux/pmix_flux.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
22
/*
3-
* Copyright (c) 2014-2017 Intel, Inc. All rights reserved.
3+
* Copyright (c) 2014-2019 Intel, Inc. All rights reserved.
44
* Copyright (c) 2014-2016 Research Organization for Information Science
55
* and Technology (RIST). All rights reserved.
66
* Copyright (c) 2016 Cisco Systems, Inc. All rights reserved.
@@ -373,6 +373,7 @@ static int flux_init(opal_list_t *ilist)
373373
char *str;
374374

375375
if (0 < pmix_init_count) {
376+
pmix_init_count++;
376377
return OPAL_SUCCESS;
377378
}
378379

@@ -585,11 +586,10 @@ static int flux_fini(void) {
585586

586587
if (0 == --pmix_init_count) {
587588
PMI_Finalize ();
589+
// teardown hash table
590+
opal_pmix_base_hash_finalize();
588591
}
589592

590-
// teardown hash table
591-
opal_pmix_base_hash_finalize();
592-
593593
return OPAL_SUCCESS;
594594
}
595595

0 commit comments

Comments
 (0)