Skip to content

v5.0.x: common/ucx: fix variable registration #10229

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 1 commit into from
Apr 7, 2022

Conversation

awlauria
Copy link
Contributor

@awlauria awlauria commented Apr 6, 2022

The registration code in common/ucx was overly complex. It assumed
that re-registration is not desireable when it essentially does the
same as the find before the registration. The only thing that needs
protection is resetting the char * variables before they are
registered.

The primary purpose of this commit to fix two memory leaks caused
by the extra allocations to hold the strings. These allocations
are unnecessary.

Signed-off-by: Nathan Hjelm [email protected]
(cherry picked from commit 5ad772c)

The registration code in common/ucx was overly complex. It assumed
that re-registration is not desireable when it essentially does the
same as the find before the registration. The only thing that needs
protection is resetting the char * variables before they are
registered.

The primary purpose of this commit to fix two memory leaks caused
by the extra allocations to hold the strings. These allocations
are unnecessary.

Signed-off-by: Nathan Hjelm <[email protected]>
(cherry picked from commit 5ad772c)
@awlauria awlauria requested a review from janjust April 6, 2022 19:58
@awlauria awlauria added this to the v5.0.0 milestone Apr 6, 2022
@awlauria
Copy link
Contributor Author

awlauria commented Apr 7, 2022

bot:aws:retest

3 similar comments
@awlauria
Copy link
Contributor Author

awlauria commented Apr 7, 2022

bot:aws:retest

@awlauria
Copy link
Contributor Author

awlauria commented Apr 7, 2022

bot:aws:retest

@awlauria
Copy link
Contributor Author

awlauria commented Apr 7, 2022

bot:aws:retest

@awlauria awlauria merged commit 92950ee into open-mpi:v5.0.x Apr 7, 2022
@awlauria awlauria deleted the fix_variable_regis branch April 7, 2022 17:59
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