8000 Fix memory leak in curl plugin by bkjg · Pull Request #3547 · collectd/collectd · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix memory leak in curl plugin #3547

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
Aug 28, 2020
Merged

Fix memory leak in curl plugin #3547

merged 1 commit into from
Aug 28, 2020

Conversation

bkjg
Copy link
Member
@bkjg bkjg commented Aug 28, 2020

When AddressFamily field was set in config file in configuration for curl plugin, memory was allocated and pointer was stored in af variable. At the end of block of code, this memory wasn't freed.

ChangeLog: curl plugin: Fix memory leak

This commit will add the patch that fixes the memory leak in curl
plugin. Before when AddressFamily field was set in config file in
variable af was pointer to value of this field and it wasn't freed at
the end. Now this bug is fixed.
@bkjg bkjg requested a review from a team as a code owner August 28, 2020 10:24
Copy link
Member
@kwiatrox kwiatrox left a comment

Choose a reason for hiding this comment

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

Thank you for the fix @bkjg , LGTM!

@kwiatrox kwiatrox merged commit 29dc089 into collectd:main Aug 28, 2020
@octo octo added the Bug A genuine bug label Aug 30, 2020
@octo octo added this to the 5.11 milestone Aug 30, 2020
@octo
Copy link
Member
octo commented Aug 30, 2020

Thank you so much Barbara! I've cherry-picked this fix into the collectd-5.11 branch as 3182574.

@octo octo added Fix A pull request fixing a bug and removed Bug A genuine bug labels Jan 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fix A pull request fixing a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0