11/*
2- * Copyright (c) 2015-2016 Intel, Inc. All rights reserved.
2+ * Copyright (c) 2015-2017 Intel, Inc. All rights reserved.
33 * $COPYRIGHT$
44 *
55 * Additional copyrights may follow
@@ -173,7 +173,6 @@ void free_ofi_prov_resources( int ofi_prov_id)
173173 orte_rml_ofi .ofi_prov [ofi_prov_id ].fabric_info = NULL ;
174174 orte_rml_ofi .ofi_prov [ofi_prov_id ].mr_multi_recv = NULL ;
175175 orte_rml_ofi .ofi_prov [ofi_prov_id ].ofi_prov_id = RML_OFI_PROV_ID_INVALID ;
176- OPAL_LIST_DESTRUCT (& orte_rml_ofi .recv_msg_queue_list );
177176
178177
179178 if ( orte_rml_ofi .ofi_prov [ofi_prov_id ].progress_ev_active ) {
@@ -195,23 +194,24 @@ rml_ofi_component_close(void)
195194 opal_object_t * value ;
196195 uint64_t key ;
197196 void * node ;
197+ uint8_t ofi_prov_id ;
198198
199199 opal_output_verbose (10 ,orte_rml_base_framework .framework_output ,
200200 " %s - rml_ofi_component_close() -begin, total open OFI providers = %d" ,
201201 ORTE_NAME_PRINT (ORTE_PROC_MY_NAME ),orte_rml_ofi .ofi_prov_open_num );
202202
203- if (orte_rml_ofi .fi_info_list ) {
204- (void ) fi_freeinfo (orte_rml_ofi .fi_info_list );
203+ if (orte_rml_ofi .fi_info_list ) {
204+ (void ) fi_freeinfo (orte_rml_ofi .fi_info_list );
205205 }
206206
207207 /* Close endpoint and all queues */
208- for ( uint8_t ofi_prov_id = 0 ;ofi_prov_id < orte_rml_ofi .ofi_prov_open_num ;ofi_prov_id ++ ) {
208+ for ( ofi_prov_id = 0 ; ofi_prov_id < orte_rml_ofi .ofi_prov_open_num ; ofi_prov_id ++ ) {
209209 free_ofi_prov_resources (ofi_prov_id );
210210 }
211211
212212 /* release all peers from the hash table */
213- rc = opal_hash_table_get_first_key_uint64 (& orte_rml_ofi .peers , & key ,
214- (void * * ) & value , & node );
213+ rc = opal_hash_table_get_first_key_uint64 (& orte_rml_ofi .peers , & key ,
214+ (void * * )& value , & node );
215215 while (OPAL_SUCCESS == rc ) {
216216 if (NULL != value ) {
217217 OBJ_RELEASE (value );
@@ -231,6 +231,7 @@ rml_ofi_component_close(void)
231231 (void * * ) & value , node , & node );
232232 }
233233 OBJ_DESTRUCT (& orte_rml_ofi .peers );
234+ OPAL_LIST_DESTRUCT (& orte_rml_ofi .recv_msg_queue_list );
234235
235236 opal_output_verbose (10 ,orte_rml_base_framework .framework_output ,
236237 " %s - rml_ofi_component_close() end" ,ORTE_NAME_PRINT (ORTE_PROC_MY_NAME ));
0 commit comments