]> xenbits.xensource.com Git - libvirt.git/commit
qemu_command: Resolve resource leaks found by Valgrind
authorJohn Ferlan <jferlan@redhat.com>
Mon, 4 Feb 2013 16:15:12 +0000 (11:15 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Thu, 7 Feb 2013 19:08:14 +0000 (14:08 -0500)
commit890b6b351f2efee3dd2462eeed305416367399a8
treeef9531711543e6f2b2543611b78e6e6965f6bb54
parent7af7c42d05dbc8661a9905c1e32d7086f90863b6
qemu_command: Resolve resource leaks found by Valgrind

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