]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Resolve Coverity RESOURCE_LEAK
authorJohn Ferlan <jferlan@redhat.com>
Mon, 18 May 2015 13:16:53 +0000 (09:16 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Tue, 26 May 2015 10:36:09 +0000 (06:36 -0400)
commit2f9f7b5fc77e5c5ac1f09ad20dceddefed388b70
tree522fd15d3b48772d920bdd5b12608ccd34522d28
parentc214f56a8264114145f9e1b79b10b72aa079e44a
qemu: Resolve Coverity RESOURCE_LEAK

Recent changes to the -M/--machine processing code in qemuParseCommandLine
caused Coverity to determine there was a possible resource leak with how
the 'list' is managed. Rather than try to add virStringFreeList calls
everywhere - just promote list to the top of the variables and free it
within the error processing code. Also required a couple of other tweaks
in order to avoid double free's.
src/qemu/qemu_command.c