Skip to content

v2.x: mpool/base: plug a memory leak #4584

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 12, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@ included in the vX.Y.Z section and be denoted as:
(** also appeared: A.B.C) -- indicating that this item was previously
included in release version vA.B.C.

2.1.3 -- To be released
------------------------

Bug fixes/minor improvements:

- Plug a memory leak in MPI_Mem_free(). Thanks to Philip Blakely for reporting.

2.1.2 -- September, 2017
------------------------

Expand Down
3 changes: 3 additions & 0 deletions opal/mca/mpool/base/mpool_base_alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* Copyright (c) 2010 IBM Corporation. All rights reserved.
* Copyright (c) 2015 Los Alamos National Security, LLC. All rights
* reserved.
* Copyright (c) 2017 Research Organization for Information Science
* and Technology (RIST). All rights reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
Expand Down Expand Up @@ -97,6 +99,7 @@ void *mca_mpool_base_alloc(size_t size, opal_info_t *info, const char *hints)
mca_mpool_base_tree_item_put (mpool_tree_item);
} else {
mpool_tree_item->mpool = mpool;
mpool_tree_item->key = mem;
mca_mpool_base_tree_insert (mpool_tree_item);
}

Expand Down