From 0ef6baffd3fcf8a52016d1559c7c0d8b475e6298 Mon Sep 17 00:00:00 2001 From: Nathan Hjelm Date: Wed, 14 May 2014 23:45:50 +0000 Subject: [PATCH] Fix bug in r31764 Need to remove the items of the list to avoid an assert in debug builds. cmr=v1.8.2:ticket=trac:4628 This commit was SVN r31769. The following SVN revision numbers were found above: r31764 --> open-mpi/ompi@13fd6ae77453e6af725c8fae80d2534b98cea95f The following Trac tickets were found above: Ticket 4628 --> https://svn.open-mpi.org/trac/ompi/ticket/4628 --- opal/class/opal_free_list.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opal/class/opal_free_list.c b/opal/class/opal_free_list.c index 21e01a2cec..6dc0d249da 100644 --- a/opal/class/opal_free_list.c +++ b/opal/class/opal_free_list.c @@ -54,7 +54,7 @@ static void opal_free_list_destruct(opal_free_list_t* fl) opal_list_item_t *item; if (fl->fl_elem_class) { - OPAL_LIST_FOREACH(item, &fl->super, opal_list_item_t) { + while (NULL != (item = opal_list_remove_first (&fl->super))) { /* destruct the item (we constructed it), the underlying memory will be * reclaimed when we free the slab below */ OBJ_DESTRUCT(item);