mpool/hugepage: plug a memory leak on finalize
Signed-off-by: Gilles Gouaillardet <gilles@rist.or.jp>
Этот коммит содержится в:
родитель
51021028d6
Коммит
507623d6b1
@ -16,6 +16,8 @@
|
|||||||
* Copyright (c) 2010 IBM Corporation. All rights reserved.
|
* Copyright (c) 2010 IBM Corporation. All rights reserved.
|
||||||
* Copyright (c) 2011-2016 Los Alamos National Security, LLC. All rights
|
* Copyright (c) 2011-2016 Los Alamos National Security, LLC. All rights
|
||||||
* reserved.
|
* reserved.
|
||||||
|
* Copyright (c) 2017 Research Organization for Information Science
|
||||||
|
* and Technology (RIST). All rights reserved.
|
||||||
*
|
*
|
||||||
* $COPYRIGHT$
|
* $COPYRIGHT$
|
||||||
*
|
*
|
||||||
@ -246,6 +248,7 @@ static void mca_mpool_hugepage_finalize (struct mca_mpool_base_module_t *mpool)
|
|||||||
mca_mpool_hugepage_module_t *hugepage_module = (mca_mpool_hugepage_module_t *) mpool;
|
mca_mpool_hugepage_module_t *hugepage_module = (mca_mpool_hugepage_module_t *) mpool;
|
||||||
|
|
||||||
OBJ_DESTRUCT(&hugepage_module->lock);
|
OBJ_DESTRUCT(&hugepage_module->lock);
|
||||||
|
OBJ_DESTRUCT(&hugepage_module->allocation_tree);
|
||||||
|
|
||||||
if (hugepage_module->allocator) {
|
if (hugepage_module->allocator) {
|
||||||
(void) hugepage_module->allocator->alc_finalize (hugepage_module->allocator);
|
(void) hugepage_module->allocator->alc_finalize (hugepage_module->allocator);
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user