Skip to content

Commit 725caf4

Browse files
authored
Merge pull request #4584 from ggouaillardet/topic/v2.x/mpool_base_alloc
v2.x: mpool/base: plug a memory leak
2 parents 11431a4 + 5478e27 commit 725caf4

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

NEWS

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,13 @@ included in the vX.Y.Z section and be denoted as:
5353
(** also appeared: A.B.C) -- indicating that this item was previously
5454
included in release version vA.B.C.
5555

56+
2.1.3 -- To be released
57+
------------------------
58+
59+
Bug fixes/minor improvements:
60+
61+
- Plug a memory leak in MPI_Mem_free(). Thanks to Philip Blakely for reporting.
62+
5663
2.1.2 -- September, 2017
5764
------------------------
5865

opal/mca/mpool/base/mpool_base_alloc.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
* Copyright (c) 2010 IBM Corporation. All rights reserved.
1515
* Copyright (c) 2015 Los Alamos National Security, LLC. All rights
1616
* reserved.
17+
* Copyright (c) 2017 Research Organization for Information Science
18+
* and Technology (RIST). All rights reserved.
1719
* $COPYRIGHT$
1820
*
1921
* Additional copyrights may follow
@@ -97,6 +99,7 @@ void *mca_mpool_base_alloc(size_t size, opal_info_t *info, const char *hints)
9799
mca_mpool_base_tree_item_put (mpool_tree_item);
98100
} else {
99101
mpool_tree_item->mpool = mpool;
102+
mpool_tree_item->key = mem;
100103
mca_mpool_base_tree_insert (mpool_tree_item);
101104
}
102105

0 commit comments

Comments
 (0)