[libvirt] [PATCH] remote: Fix memory leak
Eric Blake
eblake at redhat.com
Mon Jul 11 15:55:39 UTC 2011
On 07/10/2011 11:14 PM, ajia at redhat.com wrote:
> From: Alex Jia <ajia at redhat.com>
>
> Detected in valgrind run:
>
> ==9184== 1 bytes in 1 blocks are definitely lost in loss record 1 of 19
> ==9184== at 0x4A04A28: calloc (vg_replace_malloc.c:467)
> ==9184== by 0x3073715F78: xdr_array (xdr_array.c:97)
> ==9184== by 0x4CF97C9: xdr_remote_domain_get_security_label_ret (remote_protocol.c:1696)
>
> * src/remote/remote_driver.c: Avoid leak on remoteDomainGetSecurityLabel
> and remoteNodeGetSecurityModel.
> ---
> src/remote/remote_driver.c | 12 +++++++++---
> 1 files changed, 9 insertions(+), 3 deletions(-)
ACK and pushed. I added you to AUTHORS; let me know if I need to adjust
anything for your preferred spellings.
--
Eric Blake eblake at redhat.com +1-801-349-2682
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110711/a20b8e1f/attachment-0001.sig>
More information about the libvir-list
mailing list