Bug 913145
| Summary: | Misc leaks in virNetClientProgramCall in libvirt 1.0.2 | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Richard W.M. Jones <rjones> |
| Component: | libvirt | Assignee: | Libvirt Maintainers <libvirt-maint> |
| Status: | CLOSED UPSTREAM | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | berrange, clalancette, crobinso, itamar, jforbes, jtomko, jyang, laine, libvirt-maint, mprivozn, veillard, virt-maint |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-02-28 22:09:04 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Richard W.M. Jones
2013-02-20 14:01:53 UTC
Wierd. All these traces are saying "0 bytes" - so I'm not really sure what valgrind thinks is wrong here. I guess calloc(0,0) is being called (and isn't returning NULL). That would still be a memory leak, since the malloc structure overhead is being leaked. Hmm, I would have expected it to report '1 byte' leaked if calloc(0) returned non-NULL, but worth checking I guess. I remember seeing a similar valgrind log on the list https://www.redhat.com/archives/libvir-list/2013-February/msg00813.html Patch has been posted upstream. So I've pushed it:
commit 1d8193ee8a7c9b6355468bd58e483d84fe1ed40b
Author: Sergey Fionov <fionov>
AuthorDate: Sun Feb 17 18:20:59 2013 +0400
Commit: Michal Privoznik <mprivozn>
CommitDate: Wed Feb 20 17:56:35 2013 +0100
Fix memory leak in virNetClientIOWriteMessage
Commit 18937c3ae0990b4417a43aa07a2c35aaf8cb6ec2 introduced the
memory leak when client->msg.fds is copied to thecall->msg
and then never freed.
v1.0.2-208-g1d8193e
Hence moving to POST.
Just closing as UPSTREAM, this is minor and will be fixed with the next libvirt update in rawhide |