[libvirt] [PATCH] Fix small memory leaks in config parsing related functions
Eric Blake
eblake at redhat.com
Mon Apr 25 16:54:47 UTC 2011
On 04/24/2011 04:26 PM, Matthias Bolte wrote:
> Found by 'make -C tests valgrind'.
>
> xen_xm.c: Dummy allocation via virDomainChrDefNew is directly
> overwritten and lost. Free 'script' in success path too.
>
> vmx.c: Free virtualDev_string in success path too.
>
> domain_conf.c: Free compression in success path too.
> ---
> src/conf/domain_conf.c | 1 +
> src/vmx/vmx.c | 16 +++++++++-------
> src/xenxs/xen_xm.c | 3 +--
> 3 files changed, 11 insertions(+), 9 deletions(-)
ACK to all three fixes.
--
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/20110425/981d27ae/attachment-0001.sig>
More information about the libvir-list
mailing list