Skip to content

Commit 4f810d5

Browse files
author
Ralph Castain
authored
Merge pull request #3076 from rhc54/topic/doublefree
Fix double-free in rml/ofi shutdown
2 parents b0f8d2c + c757c3d commit 4f810d5

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

orte/mca/rml/ofi/rml_ofi_component.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -219,17 +219,6 @@ rml_ofi_component_close(void)
219219
rc = opal_hash_table_get_next_key_uint64 (&orte_rml_ofi.peers, &key,
220220
(void **) &value, node, &node);
221221
}
222-
223-
/* release all peers from the hash table */
224-
rc = opal_hash_table_get_first_key_uint64 (&orte_rml_ofi.peers, &key,
225-
(void **) &value, &node);
226-
while (OPAL_SUCCESS == rc) {
227-
if (NULL != value) {
228-
OBJ_RELEASE(value);
229-
}
230-
rc = opal_hash_table_get_next_key_uint64 (&orte_rml_ofi.peers, &key,
231-
(void **) &value, node, &node);
232-
}
233222
OBJ_DESTRUCT(&orte_rml_ofi.peers);
234223
OPAL_LIST_DESTRUCT(&orte_rml_ofi.recv_msg_queue_list);
235224

0 commit comments

Comments
 (0)