1
1

mpool/hugepage: plug a memory leak on finalize

Signed-off-by: Gilles Gouaillardet <gilles@rist.or.jp>
Этот коммит содержится в:
Gilles Gouaillardet 2016-10-04 15:21:28 +09:00
родитель 51021028d6
Коммит 507623d6b1

Просмотреть файл

@ -16,6 +16,8 @@
* Copyright (c) 2010 IBM Corporation. All rights reserved.
* Copyright (c) 2011-2016 Los Alamos National Security, LLC. All rights
* reserved.
* Copyright (c) 2017 Research Organization for Information Science
* and Technology (RIST). All rights reserved.
*
* $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;
OBJ_DESTRUCT(&hugepage_module->lock);
OBJ_DESTRUCT(&hugepage_module->allocation_tree);
if (hugepage_module->allocator) {
(void) hugepage_module->allocator->alc_finalize (hugepage_module->allocator);