Skip to content

v5: Fix memory leak in dpm_convert (dpm.c) #11219

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
Dec 20, 2022

Conversation

jjhursey
Copy link
Member

Coverity static analysis reports a memory leak at exit from the dpm_convert function (line 822).

The variable ck is allocated by strdup in the loop at line 729. If control falls thru the end of the loop, ck is not freed.

This is fixed by freeing ck at the end of the loop. Coverity CID 1462618

Signed-off-by: David Wootton [email protected]
(cherry picked from commit ef091eb)

Coverity static analysis reports a memory leak at exit from the dpm_convert function (line 822).

The variable ck is allocated by strdup in the loop at line 729. If control falls thru the end of the loop, ck is not freed.

This is fixed by freeing ck at the end of the loop.
Coverity CID 1462618

Signed-off-by: David Wootton <[email protected]>
(cherry picked from commit ef091eb)
@janjust janjust merged commit 189101e into open-mpi:v5.0.x Dec 20, 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.

3 participants