Skip to content
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

v5.0.x: Fix minor memory leaks #12061

Merged
merged 4 commits into from
Nov 16, 2023

Conversation

jsquyres
Copy link
Member

This is the v5.0.x PR corresponding to main PR #12031.

See individual commit messages for details.

Remove an accidental second OBJ_CONSTRUCT of a local opal_bitmap_t
variable "reachable".

Signed-off-by: Jeff Squyres <[email protected]>
(cherry picked from commit d89c462)
Even if a framework has its own framework_close function, we still
have to mca_base_component_unload() each component (which will be
handled safely/properly, regardless of whether the component is
statically linked or was opened dynamically) and then remove that
component from the framework's list of components.

Signed-off-by: Jeff Squyres <[email protected]>
(cherry picked from commit 9f67859)
When tearing down the BTL TCP component, use the handy
OPAL_LIST_DESTRUCT macro to OBJ_RELEASE all elements of the
mca_btl_tcp_component.local_ifs list and then OBJ_DESTRUCT -- not
OBJ_RELEASE -- the list itself.

Signed-off-by: Jeff Squyres <[email protected]>
(cherry picked from commit 16526a2)
split_and_resolve() destroys an argv as it analyzes it.  Fix one case
in the loop where argv[i] was accidentally neglected to be freed.

Signed-off-by: Jeff Squyres <[email protected]>
(cherry picked from commit 1395303)
@jsquyres jsquyres added this to the v5.0.1 milestone Nov 12, 2023
@jsquyres jsquyres requested a review from bosilca November 12, 2023 14:18
@jsquyres
Copy link
Member Author

bot:aws:recheck

@janjust janjust merged commit 0473d58 into open-mpi:v5.0.x Nov 16, 2023
8 checks passed
@jsquyres jsquyres deleted the pr/v5.0.x/fix-minor-memory-leaks branch November 17, 2023 00:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants