File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change 3
3
* Copyright (c) 2007 The Trustees of Indiana University.
4
4
* All rights reserved.
5
5
* Copyright (c) 2011-2016 Cisco Systems, Inc. All rights reserved.
6
- * Copyright (c) 2011-2013 Los Alamos National Security, LLC. All
6
+ * Copyright (c) 2011-2017 Los Alamos National Security, LLC. All
7
7
* rights reserved.
8
8
* Copyright (c) 2013-2017 Intel, Inc. All rights reserved.
9
9
* Copyright (c) 2014-2016 Research Organization for Information Science
@@ -175,6 +175,7 @@ static int s2_init(opal_list_t *ilist)
175
175
opal_process_name_t wildcard_rank ;
176
176
177
177
if (0 < pmix_init_count ) {
178
+ ++ pmix_init_count ;
178
179
return OPAL_SUCCESS ;
179
180
}
180
181
@@ -425,13 +426,13 @@ static int s2_fini(void) {
425
426
426
427
if (0 == -- pmix_init_count ) {
427
428
PMI2_Finalize ();
428
- }
429
- if ( NULL != pmix_kvs_name ) {
430
- free ( pmix_kvs_name ) ;
431
- pmix_kvs_name = NULL ;
432
- }
433
- if ( NULL != s2_lranks ) {
434
- free ( s2_lranks );
429
+ if ( NULL != pmix_kvs_name ) {
430
+ free ( pmix_kvs_name );
431
+ pmix_kvs_name = NULL ;
432
+ }
433
+ if ( NULL != s2_lranks ) {
434
+ free ( s2_lranks );
435
+ }
435
436
}
436
437
return OPAL_SUCCESS ;
437
438
}
You can’t perform that action at this time.
0 commit comments