8000 Plug a small leak, found with AddressSanitizer by rubenk · Pull Request #1025 · collectd/collectd · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Plug a small leak, found with AddressSanitizer #1025

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

Closed
wants to merge 1 commit into from
Closed

Plug a small leak, found with AddressSanitizer #1025

wants to merge 1 commit into from

Conversation

rubenk
Copy link
Contributor
@rubenk rubenk commented May 10, 2015

No description provided.

@mfournier
Copy link

Thanks for figuring this out @rubenk !

I wonder though if this shouldn't rather be done inside the oconfig_free() function itself, at the bottom of src/liboconfig/oconfig.c.

I grepped through current master, and all calls to this function are done against local variables, most of the time just before a return() statement.

@rubenk
Copy link
Contributor Author
rubenk commented May 12, 2015

That was my first thought as well. The problem is that you'll get a double-free since that function calls itself recursively.

@octo
Copy link
Member
octo commented May 19, 2015

I've merged #1027 instead. Thanks everybody!

@octo octo closed this May 19, 2015
@rubenk rubenk deleted the plug-small-leak branch August 4, 2015 08:09
@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