Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
Memory leak detected by Valgrind #56
Comments
|
Yep, definitely a bug and the patch looks correct ... I'll push it forward [e03213ac of you want to send me your real name/email addr to kenj@kenj.com.au I'll ensure the fix is attributed correctly] Of more interest (at least to me) is how we missed this in the PCP QA suite ... we make extensive use of valgrind to help find exactly this sort of issue, so we have a coverage problem here. Can you share the recipe used to reproduce this? |
|
I'm writing a PMDA that uses dynamic metrics. From what I understand this functionality is a bit uncommon, so maybe coverage is not so great? I'm sending you a simple test case derived from the "trivial" PMDA example. |
|
While dynamic metrics are not common, there are plenty of them already in use ... |
|
cut-n-paste ate my asterisks in the last comment ... let me try again ... |
|
Fixed in commit a6cb593 Thanks Emanuele. |
e03213ac commentedDec 11, 2015
This Valgrind error was generated on 3.10.8 but it also applies to the latest master branch:
The problem is in
src/libpcp_pmda/src/mainloop.c, line 232:The
namestring is not freed.Suggested patch: