[libvirt] [PATCHv3] Fix Memory Leak in virQEMUCapsInitGuestFromBinary()

Eric Blake eblake at redhat.com
Thu Mar 27 12:48:15 UTC 2014


On 03/27/2014 05:38 AM, Nehal J Wani wrote:
> While running qemucaps2xmltest, it was found that valgrind pointed out
> the following memory leaks:
> 
> ==29896== 0 bytes in 1 blocks are definitely lost in loss record 1 of 65
> ==29896==    at 0x4A0577B: calloc (vg_replace_malloc.c:593)
> ==29896==    by 0x4C6B45E: virAllocN (viralloc.c:191)
> ==29896==    by 0x4232A9: virQEMUCapsGetMachineTypesCaps (qemu_capabilities.c:1999)

> ---
>  Based on Daniel's comments.
>  v2: https://www.redhat.com/archives/libvir-list/2014-March/msg01672.html
>  v1: https://www.redhat.com/archives/libvir-list/2014-March/msg01667.html
> 
>  src/qemu/qemu_capabilities.c |    6 ++++--
>  1 files changed, 4 insertions(+), 2 deletions(-)

ACK, will push shortly

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 604 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140327/a062a69d/attachment-0001.sig>


More information about the libvir-list mailing list