1
1

The TCP component will have set the hash table entry to NULL, but that doesn't remove the key. So the hash_table retrieval function will return success, but with a NULL pointer - protect against that scenario

Patch provided by Gilles - reviewed by rhc.

RM-approved

cmr=v1.8.2:reviewer=ompi-gk1.8

This commit was SVN r31971.
Этот коммит содержится в:
Ralph Castain 2014-06-09 17:46:22 +00:00
родитель 5d5ae41ea5
Коммит ba926d8635

Просмотреть файл

@ -86,7 +86,9 @@ static int orte_oob_base_close(void)
rc = opal_hash_table_get_first_key_uint64 (&orte_oob_base.peers, &key,
(void **) &value, &node);
while (OPAL_SUCCESS == rc) {
OBJ_RELEASE(value);
if (NULL != value) {
OBJ_RELEASE(value);
}
rc = opal_hash_table_get_next_key_uint64 (&orte_oob_base.peers, &key,
(void **) &value, node, &node);
}