From 720fa860eee7df4f06eb5604058da57453e88b46 Mon Sep 17 00:00:00 2001 From: Raghavendra Pendyala Date: Tue, 20 Oct 2015 12:58:23 -0700 Subject: [PATCH] changing the destruct function of list release API to release list items caused a bug in oshmem application. Fixing the bug with this patch --- oshmem/mca/memheap/base/memheap_base_mkey.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/oshmem/mca/memheap/base/memheap_base_mkey.c b/oshmem/mca/memheap/base/memheap_base_mkey.c index 2d9e4f5841..7cea9c7eda 100644 --- a/oshmem/mca/memheap/base/memheap_base_mkey.c +++ b/oshmem/mca/memheap/base/memheap_base_mkey.c @@ -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);