Always release the allocated memory.
This commit was SVN r20560.
Этот коммит содержится в:
родитель
265ac096e8
Коммит
a0afc9ee29
@ -76,6 +76,12 @@ static void ompi_free_list_destruct(ompi_free_list_t* fl)
|
||||
fl->fl_mpool->mpool_free(fl->fl_mpool, fl_mem->ptr,
|
||||
fl_mem->registration);
|
||||
|
||||
/* destruct the item (we constructed it), then free the memory chunk */
|
||||
OBJ_DESTRUCT(item);
|
||||
free(item);
|
||||
}
|
||||
} else {
|
||||
while(NULL != (item = opal_list_remove_first(&(fl->fl_allocations)))) {
|
||||
/* destruct the item (we constructed it), then free the memory chunk */
|
||||
OBJ_DESTRUCT(item);
|
||||
free(item);
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user