Fix double-free in rml/ofi shutdown
Signed-off-by: Ralph Castain <rhc@open-mpi.org>
Этот коммит содержится в:
родитель
b0f8d2c460
Коммит
c757c3d260
@ -219,17 +219,6 @@ rml_ofi_component_close(void)
|
|||||||
rc = opal_hash_table_get_next_key_uint64 (&orte_rml_ofi.peers, &key,
|
rc = opal_hash_table_get_next_key_uint64 (&orte_rml_ofi.peers, &key,
|
||||||
(void **) &value, node, &node);
|
(void **) &value, node, &node);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* release all peers from the hash table */
|
|
||||||
rc = opal_hash_table_get_first_key_uint64 (&orte_rml_ofi.peers, &key,
|
|
||||||
(void **) &value, &node);
|
|
||||||
while (OPAL_SUCCESS == rc) {
|
|
||||||
if (NULL != value) {
|
|
||||||
OBJ_RELEASE(value);
|
|
||||||
}
|
|
||||||
rc = opal_hash_table_get_next_key_uint64 (&orte_rml_ofi.peers, &key,
|
|
||||||
(void **) &value, node, &node);
|
|
||||||
}
|
|
||||||
OBJ_DESTRUCT(&orte_rml_ofi.peers);
|
OBJ_DESTRUCT(&orte_rml_ofi.peers);
|
||||||
OPAL_LIST_DESTRUCT(&orte_rml_ofi.recv_msg_queue_list);
|
OPAL_LIST_DESTRUCT(&orte_rml_ofi.recv_msg_queue_list);
|
||||||
|
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user