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 33 * Copyright (c) 2007 The Trustees of Indiana University.
44 * All rights reserved.
55 * 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
77 * rights reserved.
88 * Copyright (c) 2013-2017 Intel, Inc. All rights reserved.
99 * Copyright (c) 2014-2016 Research Organization for Information Science
@@ -175,6 +175,7 @@ static int s2_init(opal_list_t *ilist)
175175 opal_process_name_t wildcard_rank ;
176176
177177 if (0 < pmix_init_count ) {
178+ ++ pmix_init_count ;
178179 return OPAL_SUCCESS ;
179180 }
180181
@@ -425,13 +426,13 @@ static int s2_fini(void) {
425426
426427 if (0 == -- pmix_init_count ) {
427428 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+ }
435436 }
436437 return OPAL_SUCCESS ;
437438}
You can’t perform that action at this time.
0 commit comments