Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions opal/class/opal_list.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,17 @@ static void opal_list_construct(opal_list_t *list)


/*
* Reset all the pointers to be NULL -- do not actually destroy
* anything.
* Release the list items in the list.
* Reset list pointers to be NULL
*/
static void opal_list_destruct(opal_list_t *list)
{
opal_list_item_t *it;

while (NULL != (it = opal_list_remove_first(list))) {
OBJ_RELEASE(it);
}

opal_list_construct(list);
}

Expand Down
5 changes: 5 additions & 0 deletions oshmem/mca/memheap/base/memheap_base_mkey.c
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,11 @@ void memheap_oob_destruct(void)
MPI_Request_free(&r->recv_req);
}

/*clear these list object as they don't belong here */
while (NULL != opal_list_remove_first(&memheap_oob.req_list)) {
continue;
}

OBJ_DESTRUCT(&memheap_oob.req_list);
OBJ_DESTRUCT(&memheap_oob.lck);
OBJ_DESTRUCT(&memheap_oob.cond);
Expand Down