Release the allocator list items from the list before destructing
Этот коммит содержится в:
родитель
140cf90e3e
Коммит
43e0c5bfef
@ -359,6 +359,10 @@ int mca_allocator_basic_compact(mca_allocator_base_module_t * mem)
|
|||||||
int mca_allocator_basic_finalize(mca_allocator_base_module_t * base)
|
int mca_allocator_basic_finalize(mca_allocator_base_module_t * base)
|
||||||
{
|
{
|
||||||
mca_allocator_basic_module_t* module = (mca_allocator_basic_module_t*)base;
|
mca_allocator_basic_module_t* module = (mca_allocator_basic_module_t*)base;
|
||||||
|
// clear the list as we don't own these bits
|
||||||
|
while (NULL != opal_list_remove_first(&module->seg_list)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
OBJ_DESTRUCT(&module->seg_list);
|
OBJ_DESTRUCT(&module->seg_list);
|
||||||
OBJ_DESTRUCT(&module->seg_lock);
|
OBJ_DESTRUCT(&module->seg_lock);
|
||||||
OBJ_DESTRUCT(&module->seg_descriptors);
|
OBJ_DESTRUCT(&module->seg_descriptors);
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user