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

fix small memory leak #493

Merged
merged 1 commit into from
Aug 23, 2023
Merged

fix small memory leak #493

merged 1 commit into from
Aug 23, 2023

Conversation

engelmi
Copy link
Member

@engelmi engelmi commented Aug 23, 2023

get_hostname() returns a char* from strdup, which needs to be freed. cfg_set_value() itself will create an own copy for the passed-in value.

get_hostname() returns a char* from strdup, which needs
to be freed. cfg_set_value() itself will create an own
copy for the passed-in value.

Signed-off-by: Michael Engel <mengel@redhat.com>
Copy link
Member

@mwperina mwperina left a comment

Choose a reason for hiding this comment

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

LGTM

@engelmi engelmi merged commit 4489546 into main Aug 23, 2023
10 checks passed
@engelmi engelmi deleted the fix-small-memory-leak branch August 23, 2023 08:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants