Skip to content

ofi/common: close memory base in an error path #11037

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

Conversation

hppritcha
Copy link
Member

related to #10975

Signed-off-by: Howard Pritchard [email protected]

@@ -190,6 +190,7 @@ int opal_common_ofi_export_memory_monitor(void)
free(opal_common_ofi_monitor);
}

mca_base_framework_close(&opal_memory_base_framework);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would there be an issue of closing this if it hasn't been opened? Line 141 is a goto err before this gets opened

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good point it probably shouldn't hurt but i'll add in a sentinel.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@wckzhang check now

@hppritcha hppritcha force-pushed the close_memory_base_in_ofi_err_path branch from 45a766a to c9594e3 Compare November 9, 2022 19:26
@hppritcha hppritcha merged commit cc30622 into open-mpi:main Nov 10, 2022
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.

2 participants