Skip to content

Commit 91edc61

Browse files
Merge pull request #6244 from ggouaillardet/topic/mpool_hugepage_leak
mpool/hugepage: plug a memory leak
2 parents 3a4a1f9 + 78fffa2 commit 91edc61

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

opal/mca/mpool/hugepage/mpool_hugepage_component.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
* Copyright (c) 2012-2016 Los Alamos National Security, LLC. All rights
1616
* reserved.
1717
* Copyright (c) 2016 Intel, Inc. All rights reserved.
18-
* Copyright (c) 2016 Research Organization for Information Science
19-
* and Technology (RIST). All rights reserved.
18+
* Copyright (c) 2016-2019 Research Organization for Information Science
19+
* and Technology (RIST). All rights reserved.
2020
*
2121
* $COPYRIGHT$
2222
*
@@ -274,6 +274,7 @@ static void mca_mpool_hugepage_find_hugepages (void) {
274274
opal_output_verbose (MCA_BASE_VERBOSE_INFO, opal_mpool_base_framework.framework_output,
275275
"found huge page with size = %lu, path = %s, mmap flags = 0x%x, with invalid "
276276
"permissions, skipping", hp->page_size, hp->path, hp->mmap_flags);
277+
OBJ_RELEASE(hp);
277278
}
278279
}
279280

0 commit comments

Comments
 (0)