Re: [PATCH 06/13] qemu_command: Resolve resource leaks found by Valgrind

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Feb 06, 2013 at 04:35:40PM -0500, John Ferlan wrote:
> The qemuParseGlusterString() replaced dst->src without a VIR_FREE() of
> what was in there before.
> 
> The qemuBuildCommandLine() did not properly free the boot_buf depending
> on various usages.
> 
> The qemuParseCommandLineDisk() had numerous paths that didn't clean up
> the virDomainDiskDefPtr def properly. Adjust the logic to go through an
> error: label before cleanup in order to free the resource.
> ---
>  src/qemu/qemu_command.c | 68 ++++++++++++++++++++++---------------------------

ACK


Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]