Skip to content

Commit

Permalink
Fix finalize of flux component
Browse files Browse the repository at this point in the history
Per patches from @SteVwonder and @garlick

Signed-off-by: Ralph Castain <rhc@pmix.org>
  • Loading branch information
rhc54 committed Jun 19, 2019
1 parent 560886f commit d4070d5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions opal/mca/pmix/flux/pmix_flux.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
/*
* Copyright (c) 2014-2017 Intel, Inc. All rights reserved.
* Copyright (c) 2014-2019 Intel, Inc. All rights reserved.
* Copyright (c) 2014-2016 Research Organization for Information Science
* and Technology (RIST). All rights reserved.
* Copyright (c) 2016 Cisco Systems, Inc. All rights reserved.
Expand Down Expand Up @@ -373,6 +373,7 @@ static int flux_init(opal_list_t *ilist)
char *str;

if (0 < pmix_init_count) {
pmix_init_count++;
return OPAL_SUCCESS;
}

Expand Down Expand Up @@ -585,11 +586,10 @@ static int flux_fini(void) {

if (0 == --pmix_init_count) {
PMI_Finalize ();
// teardown hash table
opal_pmix_base_hash_finalize();
}

// teardown hash table
opal_pmix_base_hash_finalize();

return OPAL_SUCCESS;
}

Expand Down

0 comments on commit d4070d5

Please sign in to comment.