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.
Этот коммит содержится в:
родитель
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);
|
||||
}
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user